Skip to content

Commit

Permalink
Gemspec cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
avolkovi committed Oct 30, 2015
1 parent 7014d35 commit 8260759
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
Expand All @@ -22,3 +21,4 @@ tmp
*.o
*.a
mkmf.log
.idea
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in acts_as_enum.gemspec
gemspec

group :development, :test do
gem 'byebug'
gem 'sqlite3'
end
47 changes: 47 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
PATH
remote: .
specs:
persistent_enum (1.0.9)
activerecord (~> 4.0)
activesupport (~> 4.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
arel (~> 6.0)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
builder (3.2.2)
byebug (6.0.2)
i18n (0.7.0)
json (1.8.3)
minitest (5.8.2)
rake (10.4.2)
sqlite3 (1.3.11)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.0)
byebug
persistent_enum!
rake (~> 10.0)
sqlite3

BUNDLED WITH
1.10.6
2 changes: 1 addition & 1 deletion lib/persistent_enum/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PersistentEnum
VERSION = "1.0.8"
VERSION = "1.0.9"
end
20 changes: 8 additions & 12 deletions persistent_enum.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@ Gem::Specification.new do |spec|
spec.name = "persistent_enum"
spec.version = PersistentEnum::VERSION
spec.authors = ["Cerego"]
spec.email = ["[email protected]"]
spec.summary = %q{Database-backed enums for Rails}
spec.description = %q{Provide a database-backed enumeration between indices and symbolic values. This allows us to have a valid foreign key which behaves like a enumeration. Values are cached at startup, and cannot be changed.}
spec.homepage = "http://www.cerego.co.jp"
spec.email = ["edge-usa@cerego.com"]
spec.summary = "Database-backed enums for Rails"
spec.description = "Provide a database-backed enumeration between indices and symbolic values. This allows us to have a valid foreign key which behaves like a enumeration. Values are cached at startup, and cannot be changed."
spec.homepage = "http://www.cerego.com"
spec.license = "BSD-2-Clause"

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency "activerecord"
spec.add_dependency "activesupport"
spec.add_development_dependency "bundler", "~> 1.0"
spec.add_development_dependency "rake", "~> 10.0"

spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"

spec.add_development_dependency "sqlite3"

spec.add_development_dependency "byebug"
spec.add_dependency "activerecord", "~> 4.0"
spec.add_dependency "activesupport", "~> 4.0"
end
6 changes: 3 additions & 3 deletions test/unit/persistent_enum_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def test_requires_constants

CONSTANTS.each do |c|
cached = TestRequiresConstant.const_get(c.upcase)
assert_present(cached)
assert(cached.present?)
assert_equal(c.to_s, cached.name)
stored = TestRequiresConstant.where(name: c.to_s).first
assert_present(stored)
assert(stored.present?)
assert_equal(cached, stored)
end

Expand All @@ -124,7 +124,7 @@ def test_constant_naming
end

test_constants.each do |k, v|
assert_present(TestConstantName.const_get(v))
assert(TestConstantName.const_get(v).present?)
end

destroy_test_model(:test_constant_name)
Expand Down

0 comments on commit 8260759

Please sign in to comment.