rubicure 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04dd3c43fbbab769801f82e7639056b0f2e0c43d
4
- data.tar.gz: 5126f266b71b7f890164e6628858c550f83175d1
3
+ metadata.gz: 4ffa2a1b26287b9f61243c1b9d55f29af347e2a2
4
+ data.tar.gz: f1b6ceb0d898e909d0a59bef5330d763a800d690
5
5
  SHA512:
6
- metadata.gz: 3453df6ae013ed7a4d0f9b0019563db2af676ba8be42b1754fda8e5c24576c14236b3062fc0cc8c227a0e9c90b9d33a9e11f1ff4f5c3a8ef625e63d48859c379
7
- data.tar.gz: 6ca379cd335e14c702a481ed6955e7960d6e0a3ac4bd5fb89e1d76ac3859ab67da4fe830d75e627e005db412d97645daf70f4f1946508ea1a5e5aa20f8a63b76
6
+ metadata.gz: 7bfd565f081c61dbbd409564fb1a169271f1982f6b7cae93c8ad0ae8db41c6326db854f0d997e07c7543a0e475fbcd319c99be3011bf51083a5eebabc67f70a0
7
+ data.tar.gz: 9817c0b9f2bf2d86bbf3912dbdf87732da365af4de81ca0f05e20036525c06f671afa0232353fe030d45a356267e0cfffd5b7011c404c8b895fbcdfad8c3df93
@@ -1,5 +1,12 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v0.4.5...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v0.4.6...master)
3
+
4
+ ## v0.4.6
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v0.4.5...v0.4.6)
6
+
7
+ * Fix DEPRECATION WARNING with activesupport 5.0+
8
+ * https://github.com/sue445/rubicure/issues/107
9
+ * https://github.com/sue445/rubicure/pull/108
3
10
 
4
11
  ## v0.4.5
5
12
  [full changelog](http://github.com/sue445/rubicure/compare/v0.4.4...v0.4.5)
@@ -52,10 +52,11 @@ module Rubicure
52
52
  @girls
53
53
  end
54
54
 
55
- def each_with_girls
56
- girls.each { |girl| yield girl }
55
+ alias_method :each_without_girls, :each
56
+
57
+ def each(&block)
58
+ girls.each(&block)
57
59
  end
58
- alias_method_chain :each, :girls
59
60
 
60
61
  def to_json(*_args)
61
62
  original_hash = {}
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
@@ -127,13 +127,13 @@ describe Rubicure::Series do
127
127
  end
128
128
  end
129
129
 
130
- describe "#each_with_girls" do
131
- subject { series.each_with_girls }
130
+ describe "#each" do
131
+ subject { series.each }
132
132
 
133
133
  let(:series) { Rubicure::Series.find(series_name) }
134
134
  let(:series_name) { :splash_star }
135
135
 
136
- it { expect { |b| series.each_with_girls(&b) }.to yield_successive_args(Rubicure::Girl, Rubicure::Girl) }
136
+ it { expect { |b| series.each(&b) }.to yield_successive_args(Rubicure::Girl, Rubicure::Girl) }
137
137
  end
138
138
 
139
139
  describe "#to_json" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubicure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-03 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport