static_association 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9070d8b187c9b04c979f3f77244f5f0aff54bc9
4
- data.tar.gz: 3a95140244d4d5413d29b86b517f847177a03182
3
+ metadata.gz: dd88c2ff7fc56c68c7afb52e5ecc34d05d00ff06
4
+ data.tar.gz: 247e7c6ec09c4aeabc7405caa0af4895ea2527c2
5
5
  SHA512:
6
- metadata.gz: 11a3e13c6693ec96763180f4f1e7feff0d41bb6b8fd0ea8bac6f662c21cc23df81b1d2aa16e3107f887d44df54da0ab5be89e66d3e7b44b3f5dda73c94373d4b
7
- data.tar.gz: cc67b525ced9dce9f6b56ec235b955c7a140cf98639738451f1d4ec95285db2e5e42e65e880bd3b1f717a6c9fbb8ffd1d4a00f5d90c96435c7d069ac79125af1
6
+ metadata.gz: 2430eb60d4dfee691c90cceb8607ed4021ab21fbee8918a13d53ef2acb1ae4e628957717ddb005df1676037de734968d3a97b0e2fd59fccb8e4369057a89e075
7
+ data.tar.gz: 2a5e771bb651c00f24068ce82e5b10307b2a7c4d7ce6729f50e329424adfc2772aa61c99a2c4fd5094575b7aec91fe97b13032485cbed1d12daf3ba3d4becfe5
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.gem
2
+ *.gemfile.lock
2
3
  *.rbc
3
4
  .bundle
4
5
  .config
@@ -15,3 +16,4 @@ spec/reports
15
16
  test/tmp
16
17
  test/version_tmp
17
18
  tmp
19
+ vendor/bundle
@@ -1,20 +1,17 @@
1
1
  language: ruby
2
2
  install: bundle install
3
+ sudo: false
3
4
  script:
4
5
  - bundle exec rake
5
6
  rvm:
6
- - 2.0.0
7
+ - 2.2
8
+ - 2.1
9
+ - 2.0
7
10
  - 1.9.3
8
- - 1.9.2
9
- - 1.8.7
10
11
  gemfile:
11
12
  - gemfiles/3.0.gemfile
12
13
  - gemfiles/3.1.gemfile
13
14
  - gemfiles/3.2.gemfile
14
15
  - gemfiles/4.0.gemfile
15
- matrix:
16
- exclude:
17
- - rvm: 1.8.7
18
- gemfile: gemfiles/4.0.gemfile
19
- - rvm: 1.9.2
20
- gemfile: gemfiles/4.0.gemfile
16
+ - gemfiles/4.1.gemfile
17
+ - gemfiles/4.2.gemfile
data/Appraisals CHANGED
@@ -15,3 +15,11 @@ end
15
15
  appraise "4.0" do
16
16
  gem "activesupport", "4.0"
17
17
  end
18
+
19
+ appraise "4.1" do
20
+ gem "activesupport", "4.1"
21
+ end
22
+
23
+ appraise "4.2" do
24
+ gem "activesupport", "4.2"
25
+ end
data/README.md CHANGED
@@ -1,14 +1,16 @@
1
1
  # StaticAssociation
2
2
 
3
- Adds basic ActiveRecord like associations to static data.
3
+ [![Build Status](https://travis-ci.org/New-Bamboo/static_association.png?branch=master)](https://travis-ci.org/New-Bamboo/static_association)
4
4
 
5
- This has been extracted from ProjectsDB and Hotleads, see the `BudgetCategory`, `Project` and `ArchiveReason`, `Lead` classes respectively for examples.
5
+ Adds basic ActiveRecord-like associations to static data.
6
6
 
7
7
  ## Installation
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem 'static_association'
11
+ ```ruby
12
+ gem 'static_association'
13
+ ```
12
14
 
13
15
  And then execute:
14
16
 
@@ -24,25 +26,33 @@ Or install it yourself as:
24
26
 
25
27
  Create your static association class:
26
28
 
27
- class Days
28
- include StaticAssociation
29
+ ```ruby
30
+ class Day
31
+ include StaticAssociation
29
32
 
30
- attr_accessor :name
33
+ attr_accessor :name
31
34
 
32
- record id: 0 do |day|
33
- day.name = :monday
34
- end
35
- end
35
+ record id: 0 do |day|
36
+ day.name = :monday
37
+ end
38
+ end
39
+ ```
36
40
 
37
41
  Calling `record` will allow you to create an instance of this static model, a unique id is mandatory. The newly created object is yielded to the passed block.
38
42
 
39
- The `Days` class will gain an `all` and `find` method.
43
+ The `Day` class will gain an `all` and `find` method.
40
44
 
41
45
  ### Associations
42
46
 
43
47
  Currently just a 'belongs to' association can be created. This behaviour can be mixed into an `ActiveRecord` model:
44
48
 
45
- belongs_to_static :day
49
+ ```ruby
50
+ class Event < ActiveRecord::Base
51
+ extend StaticAssociation::AssociationHelpers
52
+
53
+ belongs_to_static :day
54
+ end
55
+ ```
46
56
 
47
57
  This assumes your model has a field `day_id`.
48
58
 
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "i18n"
6
6
  gem "activesupport", "3.0"
7
7
 
8
- gemspec :path=>"../"
8
+ gemspec :path => "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "i18n"
6
6
  gem "activesupport", "3.1"
7
7
 
8
- gemspec :path=>"../"
8
+ gemspec :path => "../"
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "3.2"
6
6
 
7
- gemspec :path=>"../"
7
+ gemspec :path => "../"
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activesupport", "4.0"
6
6
 
7
- gemspec :path=>"../"
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "4.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "4.2"
6
+
7
+ gemspec :path => "../"
@@ -1,6 +1,5 @@
1
1
  require 'static_association/version'
2
2
  require 'active_support/concern'
3
- require 'active_support/ordered_hash'
4
3
  require 'active_support/core_ext/module/delegation'
5
4
  require 'active_support/core_ext/hash/keys'
6
5
  require 'active_support/core_ext/string/inflections'
@@ -22,10 +21,10 @@ module StaticAssociation
22
21
  module ClassMethods
23
22
  include Enumerable
24
23
 
25
- delegate :each, :to => :all
24
+ delegate :each, to: :all
26
25
 
27
26
  def index
28
- @index ||= ActiveSupport::OrderedHash.new
27
+ @index ||= {}
29
28
  end
30
29
 
31
30
  def all
@@ -33,26 +32,31 @@ module StaticAssociation
33
32
  end
34
33
 
35
34
  def find(id)
36
- raise RecordNotFound unless index.has_key?(id)
35
+ find_by_id(id) or raise RecordNotFound
36
+ end
37
+
38
+ def find_by_id(id)
37
39
  index[id]
38
40
  end
39
41
 
40
- def record(settings)
42
+ def record(settings, &block)
41
43
  settings.assert_valid_keys(:id)
42
44
  id = settings.fetch(:id)
43
45
  raise DuplicateID if index.has_key?(id)
44
46
  record = self.new(id)
45
- yield(record) if block_given?
47
+ record.instance_exec(record, &block) if block_given?
46
48
  index[id] = record
47
49
  end
48
50
  end
49
51
 
50
52
  module AssociationHelpers
51
- def belongs_to_static(name)
53
+ def belongs_to_static(name, opts = {})
54
+ class_name = opts.fetch(:class_name, name.to_s.camelize)
55
+
52
56
  self.send(:define_method, name) do
53
57
  begin
54
58
  foreign_key = self.send("#{name}_id")
55
- name.to_s.camelize.constantize.find(foreign_key) if foreign_key
59
+ class_name.constantize.find(foreign_key) if foreign_key
56
60
  rescue RecordNotFound
57
61
  nil
58
62
  end
@@ -1,3 +1,3 @@
1
1
  module StaticAssociation
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -4,14 +4,12 @@
4
4
  # loaded once.
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
- require 'rubygems'
8
7
  require 'bundler/setup'
9
8
 
9
+ require 'rspec/its'
10
+
10
11
  require 'static_association'
11
12
 
12
13
  RSpec.configure do |config|
13
- config.treat_symbols_as_metadata_keys_with_true_values = true
14
- config.run_all_when_everything_filtered = true
15
- config.filter_run :focus
16
14
  config.order = 'random'
17
15
  end
@@ -15,8 +15,8 @@ describe StaticAssociation do
15
15
  describe ".record" do
16
16
  it "should add a record" do
17
17
  expect {
18
- DummyClass.record :id => 1 do |c|
19
- c.name = 'asdf'
18
+ DummyClass.record id: 1 do
19
+ self.name = 'asdf'
20
20
  end
21
21
  }.to change(DummyClass, :count).by(1)
22
22
  end
@@ -24,20 +24,31 @@ describe StaticAssociation do
24
24
  context "id uniqueness" do
25
25
  it "should raise an error with a duplicate id" do
26
26
  expect {
27
- DummyClass.record :id => 1 do |c|
28
- c.name = 'asdf'
27
+ DummyClass.record id: 1 do
28
+ self.name = 'asdf'
29
29
  end
30
30
 
31
- DummyClass.record :id => 1 do |c|
32
- c.name = 'asdf'
31
+ DummyClass.record id: 1 do
32
+ self.name = 'asdf'
33
33
  end
34
34
  }.to raise_error(StaticAssociation::DuplicateID)
35
35
  end
36
36
  end
37
37
 
38
- context "sets up the instance" do
39
- subject {
40
- DummyClass.record :id => 1 do |c|
38
+ context "sets up the instance using self" do
39
+ subject {
40
+ DummyClass.record id: 1 do
41
+ self.name = 'asdf'
42
+ end
43
+ }
44
+
45
+ its(:id) { should == 1 }
46
+ its(:name) { should == 'asdf' }
47
+ end
48
+
49
+ context "sets up the instance using the object passed in" do
50
+ subject {
51
+ DummyClass.record id: 1 do |c|
41
52
  c.name = 'asdf'
42
53
  end
43
54
  }
@@ -46,8 +57,9 @@ describe StaticAssociation do
46
57
  its(:name) { should == 'asdf' }
47
58
  end
48
59
 
60
+
49
61
  context "without a block" do
50
- subject { DummyClass.record :id => 1 }
62
+ subject { DummyClass.record id: 1 }
51
63
 
52
64
  its(:id) { should == 1 }
53
65
  its(:name) { should be_nil }
@@ -56,31 +68,47 @@ describe StaticAssociation do
56
68
  context "asserting valid keys" do
57
69
  it "should raise an error" do
58
70
  expect {
59
- DummyClass.record :id => 1, :foo => :bar
71
+ DummyClass.record id: 1, foo: :bar
60
72
  }.to raise_error(ArgumentError)
61
73
  end
62
74
  end
63
75
  end
64
76
 
65
- describe ".find" do
77
+ describe "finders" do
66
78
  before do
67
- DummyClass.record :id => 1 do |c|
68
- c.name = 'asdf'
79
+ DummyClass.record id: 1 do
80
+ self.name = 'asdf'
69
81
  end
70
82
  end
71
83
 
72
- context "record exists" do
73
- subject { DummyClass.find(1) }
84
+ describe ".find" do
85
+ context "record exists" do
86
+ subject { DummyClass.find(1) }
74
87
 
75
- it { should be_kind_of(DummyClass) }
76
- its(:id) { should == 1 }
88
+ it { should be_kind_of(DummyClass) }
89
+ its(:id) { should == 1 }
90
+ end
91
+
92
+ context "record does not exist" do
93
+ it "should raise a StaticAssociation::RecordNotFoundError" do
94
+ expect {
95
+ DummyClass.find(:not_in_the_index)
96
+ }.to raise_error(StaticAssociation::RecordNotFound)
97
+ end
98
+ end
77
99
  end
78
100
 
79
- context "record does not exist" do
80
- it "should raise a StaticAssociation::RecordNotFoundError" do
81
- expect {
82
- DummyClass.find(:not_in_the_index)
83
- }.to raise_error(StaticAssociation::RecordNotFound)
101
+ describe ".find_by_id" do
102
+ context "record exists" do
103
+ subject { DummyClass.find_by_id(1) }
104
+
105
+ it { should be_kind_of(DummyClass) }
106
+ its(:id) { should == 1 }
107
+ end
108
+
109
+ context "record does not exist" do
110
+ subject { DummyClass.find_by_id(:not_in_the_index) }
111
+ it { should be_nil }
84
112
  end
85
113
  end
86
114
  end
@@ -88,9 +116,11 @@ describe StaticAssociation do
88
116
  describe ".belongs_to_static" do
89
117
  class AssociationClass
90
118
  attr_accessor :dummy_class_id
91
-
119
+ attr_accessor :dodo_class_id
120
+
92
121
  extend StaticAssociation::AssociationHelpers
93
122
  belongs_to_static :dummy_class
123
+ belongs_to_static :dodo_class, class_name: 'DummyClass'
94
124
  end
95
125
 
96
126
  let(:associated_class) { AssociationClass.new }
@@ -101,5 +131,12 @@ describe StaticAssociation do
101
131
  }
102
132
  associated_class.dummy_class
103
133
  end
134
+
135
+ it "creates a different reader method that uses the specified class when finding static asssociation" do
136
+ expect {
137
+ DummyClass.should_receive(:find)
138
+ }
139
+ associated_class.dodo_class
140
+ end
104
141
  end
105
142
  end
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.description = %q{StaticAssociation adds a simple enum type that can act like an ActiveRecord association for static data.}
12
12
  spec.summary = %q{ActiveRecord like associations for static data}
13
13
  spec.license = "MIT"
14
+ spec.homepage = "https://github.com/New-Bamboo/static_association"
14
15
 
15
16
  spec.files = `git ls-files`.split($/)
16
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -20,7 +21,8 @@ Gem::Specification.new do |spec|
20
21
  spec.add_dependency "activesupport", ">= 3.0.0"
21
22
 
22
23
  spec.add_development_dependency "bundler", "~> 1.3"
23
- spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "rspec", "~> 3.4"
25
+ spec.add_development_dependency "rspec-its", "~> 1.2"
24
26
  spec.add_development_dependency "rake"
25
27
  spec.add_development_dependency "appraisal"
26
28
  end
metadata CHANGED
@@ -1,83 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_association
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Nightingale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-04 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '3.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-its
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.2'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: appraisal
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '>='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - '>='
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  description: StaticAssociation adds a simple enum type that can act like an ActiveRecord
@@ -88,27 +102,25 @@ executables: []
88
102
  extensions: []
89
103
  extra_rdoc_files: []
90
104
  files:
91
- - .gitignore
92
- - .travis.yml
105
+ - ".gitignore"
106
+ - ".travis.yml"
93
107
  - Appraisals
94
108
  - Gemfile
95
109
  - LICENSE.txt
96
110
  - README.md
97
111
  - Rakefile
98
112
  - gemfiles/3.0.gemfile
99
- - gemfiles/3.0.gemfile.lock
100
113
  - gemfiles/3.1.gemfile
101
- - gemfiles/3.1.gemfile.lock
102
114
  - gemfiles/3.2.gemfile
103
- - gemfiles/3.2.gemfile.lock
104
115
  - gemfiles/4.0.gemfile
105
- - gemfiles/4.0.gemfile.lock
116
+ - gemfiles/4.1.gemfile
117
+ - gemfiles/4.2.gemfile
106
118
  - lib/static_association.rb
107
119
  - lib/static_association/version.rb
108
120
  - spec/spec_helper.rb
109
121
  - spec/static_association_spec.rb
110
122
  - static_association.gemspec
111
- homepage:
123
+ homepage: https://github.com/New-Bamboo/static_association
112
124
  licenses:
113
125
  - MIT
114
126
  metadata: {}
@@ -118,17 +130,17 @@ require_paths:
118
130
  - lib
119
131
  required_ruby_version: !ruby/object:Gem::Requirement
120
132
  requirements:
121
- - - '>='
133
+ - - ">="
122
134
  - !ruby/object:Gem::Version
123
135
  version: '0'
124
136
  required_rubygems_version: !ruby/object:Gem::Requirement
125
137
  requirements:
126
- - - '>='
138
+ - - ">="
127
139
  - !ruby/object:Gem::Version
128
140
  version: '0'
129
141
  requirements: []
130
142
  rubyforge_project:
131
- rubygems_version: 2.0.3
143
+ rubygems_version: 2.4.5
132
144
  signing_key:
133
145
  specification_version: 4
134
146
  summary: ActiveRecord like associations for static data
@@ -1,36 +0,0 @@
1
- PATH
2
- remote: /Users/olivernightingale/code/static_association
3
- specs:
4
- static_association (0.0.1)
5
- activesupport (>= 3.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (3.0.0)
11
- appraisal (0.5.2)
12
- bundler
13
- rake
14
- diff-lcs (1.2.4)
15
- i18n (0.6.5)
16
- rake (10.1.0)
17
- rspec (2.14.1)
18
- rspec-core (~> 2.14.0)
19
- rspec-expectations (~> 2.14.0)
20
- rspec-mocks (~> 2.14.0)
21
- rspec-core (2.14.5)
22
- rspec-expectations (2.14.3)
23
- diff-lcs (>= 1.1.3, < 2.0)
24
- rspec-mocks (2.14.3)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- activesupport (= 3.0)
31
- appraisal
32
- bundler (~> 1.3)
33
- i18n
34
- rake
35
- rspec
36
- static_association!
@@ -1,38 +0,0 @@
1
- PATH
2
- remote: /Users/olivernightingale/code/static_association
3
- specs:
4
- static_association (0.0.1)
5
- activesupport (>= 3.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (3.1.0)
11
- multi_json (~> 1.0)
12
- appraisal (0.5.2)
13
- bundler
14
- rake
15
- diff-lcs (1.2.4)
16
- i18n (0.6.5)
17
- multi_json (1.8.0)
18
- rake (10.1.0)
19
- rspec (2.14.1)
20
- rspec-core (~> 2.14.0)
21
- rspec-expectations (~> 2.14.0)
22
- rspec-mocks (~> 2.14.0)
23
- rspec-core (2.14.5)
24
- rspec-expectations (2.14.3)
25
- diff-lcs (>= 1.1.3, < 2.0)
26
- rspec-mocks (2.14.3)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- activesupport (= 3.1)
33
- appraisal
34
- bundler (~> 1.3)
35
- i18n
36
- rake
37
- rspec
38
- static_association!
@@ -1,38 +0,0 @@
1
- PATH
2
- remote: /Users/olivernightingale/code/static_association
3
- specs:
4
- static_association (0.0.1)
5
- activesupport (>= 3.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (3.2.0)
11
- i18n (~> 0.6)
12
- multi_json (~> 1.0)
13
- appraisal (0.5.2)
14
- bundler
15
- rake
16
- diff-lcs (1.2.4)
17
- i18n (0.6.5)
18
- multi_json (1.8.0)
19
- rake (10.1.0)
20
- rspec (2.14.1)
21
- rspec-core (~> 2.14.0)
22
- rspec-expectations (~> 2.14.0)
23
- rspec-mocks (~> 2.14.0)
24
- rspec-core (2.14.5)
25
- rspec-expectations (2.14.3)
26
- diff-lcs (>= 1.1.3, < 2.0)
27
- rspec-mocks (2.14.3)
28
-
29
- PLATFORMS
30
- ruby
31
-
32
- DEPENDENCIES
33
- activesupport (= 3.2)
34
- appraisal
35
- bundler (~> 1.3)
36
- rake
37
- rspec
38
- static_association!
@@ -1,46 +0,0 @@
1
- PATH
2
- remote: /Users/olivernightingale/code/static_association
3
- specs:
4
- static_association (0.0.1)
5
- activesupport (>= 3.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (4.0.0)
11
- i18n (~> 0.6, >= 0.6.4)
12
- minitest (~> 4.2)
13
- multi_json (~> 1.3)
14
- thread_safe (~> 0.1)
15
- tzinfo (~> 0.3.37)
16
- appraisal (0.5.2)
17
- bundler
18
- rake
19
- atomic (1.1.13)
20
- diff-lcs (1.2.4)
21
- i18n (0.6.5)
22
- minitest (4.7.5)
23
- multi_json (1.8.0)
24
- rake (10.1.0)
25
- rspec (2.14.1)
26
- rspec-core (~> 2.14.0)
27
- rspec-expectations (~> 2.14.0)
28
- rspec-mocks (~> 2.14.0)
29
- rspec-core (2.14.5)
30
- rspec-expectations (2.14.3)
31
- diff-lcs (>= 1.1.3, < 2.0)
32
- rspec-mocks (2.14.3)
33
- thread_safe (0.1.2)
34
- atomic
35
- tzinfo (0.3.37)
36
-
37
- PLATFORMS
38
- ruby
39
-
40
- DEPENDENCIES
41
- activesupport (= 4.0)
42
- appraisal
43
- bundler (~> 1.3)
44
- rake
45
- rspec
46
- static_association!