acts_as_footprintable 0.2.0 → 0.2.1

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: 16acc89d50285bfb542cd756678ac846d973e62b
4
- data.tar.gz: 5127bab776ce0f1b8acda16655e3f3fb687c703c
3
+ metadata.gz: df4d08bc04902b332332c0ff97b6274ff1d8b8ca
4
+ data.tar.gz: 458cb1b7b03dbb49519a3d8dfec29c6964c26b05
5
5
  SHA512:
6
- metadata.gz: 880dcb98a5e24fcf99941775936c85bad0e3fa7c4894f221d7fe2925edddb78e440edc144bd816e8f6d906db5469d244df3a6beb5e5b2b7b774c62b381774712
7
- data.tar.gz: 7d421157d30aa3490338fca985c4eb12156ef6ced4f4d6f8b774a89102ffd679c6641d1e5635ad6ef2fb22998435ba9bba4f5c200e68eefdb99a53ef8b2ad29d
6
+ metadata.gz: 7090d942f039475f207ea89ef6a83f7b45f83ef387a74d8abe4784087a3a7ef9307bc51864c7560502a530b9460dcbee3356636c9df77f05632dec6f6725d6c8
7
+ data.tar.gz: fedaf2dbea3f98884d2c25b6c3517fbd1516adb156852733f040a1000034d7db5322e7d491a82522783d09f27cec273ab1edc0a47744db54b2405ee022eb0013
data/.gitignore CHANGED
@@ -18,3 +18,4 @@ spec/reports
18
18
  test/tmp
19
19
  test/version_tmp
20
20
  tmp
21
+ *.log
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ source 'https://rubygems.org'
4
4
  # Specify your gem's dependencies in acts_as_footprintable.gemspec
5
5
  gemspec
6
6
 
7
-
8
7
  rails_version = ENV['RAILS_VERSION'] || 'default'
9
8
 
10
9
  rails = case rails_version
@@ -30,8 +30,7 @@ module ActsAsFootprintable
30
30
 
31
31
  private
32
32
  def get_access_history_records(target, limit=nil)
33
- records = footprints.where(:id => recent_footprint_ids(target, limit)).order("footprints.created_at desc")
34
- records.map{|footprint| footprint.footprintable}
33
+ footprints.where(:id => recent_footprint_ids(target, limit)).order("footprints.created_at desc")
35
34
  end
36
35
 
37
36
  def table_name
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module ActsAsFootprintable
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
@@ -27,7 +27,7 @@ describe ActsAsFootprintable::Footprinter do
27
27
  context "対象のモデル毎に" do
28
28
  it "取得できること" do
29
29
  @user.access_histories_for(Footprintable).should have(5).items
30
- @user.access_histories_for(Footprintable).map{|footprintable| footprintable.name}.should == (1..5).to_a.reverse.map{|index| "footprintable#{index}"}
30
+ @user.access_histories_for(Footprintable).map{|footprint| footprint.footprintable.name}.should == (1..5).to_a.reverse.map{|index| "footprintable#{index}"}
31
31
  end
32
32
 
33
33
  it "件数を絞り込めること" do
@@ -38,7 +38,7 @@ describe ActsAsFootprintable::Footprinter do
38
38
  context "全てのモデルを通じて" do
39
39
  it "取得できること" do
40
40
  @user.access_histories.should have(10).items
41
- @user.access_histories.map{|footprintable| footprintable.name}.should == (1..5).to_a.reverse.inject([]) do |results, index|
41
+ @user.access_histories.map{|footprint| footprint.footprintable.name}.should == (1..5).to_a.reverse.inject([]) do |results, index|
42
42
  results.push "second_footprintable#{index}"
43
43
  results.push "footprintable#{index}"
44
44
  results
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_footprintable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyoaki Oko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,7 +140,6 @@ files:
140
140
  - spec/internal/app/models/user.rb
141
141
  - spec/internal/config/database.yml
142
142
  - spec/internal/db/schema.rb
143
- - spec/internal/log/test.log
144
143
  - spec/spec_helper.rb
145
144
  homepage: https://github.com/patorash/acts_as_footprintable
146
145
  licenses:
@@ -176,5 +175,4 @@ test_files:
176
175
  - spec/internal/app/models/user.rb
177
176
  - spec/internal/config/database.yml
178
177
  - spec/internal/db/schema.rb
179
- - spec/internal/log/test.log
180
178
  - spec/spec_helper.rb