log_book 0.1.1 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 844141903822ef7b4da7514701dfb0b3d4463189
4
+ data.tar.gz: 6d389d3383574dbe3e676419bf46724f178482d9
5
+ SHA512:
6
+ metadata.gz: a375456188f8cb54db495328f8260bd92adadcce1446a8454ae84bfaceedab837520cc475fbd1e7c4d46feab2f7d4748684e5781e5a2ae8201d81150979f27e0
7
+ data.tar.gz: a38628f1726647304d3b31ee46fbba09857f71a6cb2e25e686f1a836ed36ddb9539a063fb60d65c8206ce2d307012c264a5d21a0f9731bbfe65f2c3eb20c795e
@@ -1 +1 @@
1
- 1.9.3-p286
1
+ 2.0.0-p247
@@ -18,7 +18,7 @@ module LogBook
18
18
  tag_list_composed << scope_tag(historian) if historian
19
19
  tag_list_composed << kind_tag(historizable) if historizable
20
20
  tag_list_composed += [tag_list].flatten if tag_list
21
-
21
+
22
22
  LogBook::Event.create!(
23
23
  :historian => historian,
24
24
  :historizable => historizable,
@@ -10,5 +10,5 @@ class LogBook::Event < ::ActiveRecord::Base
10
10
 
11
11
  validates :text, :presence => true
12
12
 
13
- scope :by_recent, order("id desc")
13
+ scope :by_recent, -> { order("id desc") }
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module LogBook
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -18,13 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "rails", "~> 4.0.2"
21
+ spec.add_runtime_dependency "rails", "~> 4.1.4"
22
22
  spec.add_runtime_dependency "protected_attributes"
23
- spec.add_runtime_dependency "acts-as-taggable-on", "2.4.1"
23
+ spec.add_runtime_dependency "acts-as-taggable-on", "3.3.0"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "bundler", "~> 1.6.3"
26
26
  spec.add_development_dependency "rake"
27
27
  spec.add_development_dependency "mocha"
28
28
  spec.add_development_dependency "sqlite3"
29
29
  spec.add_development_dependency "assert_difference"
30
+ spec.add_development_dependency "minitest", "~> 5.4.0"
30
31
  end
@@ -1,6 +1,6 @@
1
1
  require_relative "test_helper"
2
2
 
3
- class LogBookTest < MiniTest::Unit::TestCase
3
+ class LogBookTest < MiniTest::Test
4
4
  def setup
5
5
  LogBook::Event.destroy_all
6
6
  User.destroy_all
@@ -1,6 +1,6 @@
1
1
  require_relative "test_helper"
2
2
 
3
- class PluginTest < MiniTest::Unit::TestCase
3
+ class PluginTest < MiniTest::Test
4
4
  def setup
5
5
  LogBook::Event.destroy_all
6
6
  User.destroy_all
@@ -8,7 +8,8 @@ ActiveRecord::Schema.define :version => 0 do
8
8
  end
9
9
 
10
10
  # acts-as-taggable-on
11
- # https://github.com/mbleigh/acts-as-taggable-on/blob/master/lib/generators/acts_as_taggable_on/migration/templates/active_record/migration.rb
11
+ # https://github.com/mbleigh/acts-as-taggable-on/tree/master/db/migrate
12
+ #
12
13
  create_table :tags do |t|
13
14
  t.string :name
14
15
  end
@@ -21,4 +22,6 @@ ActiveRecord::Schema.define :version => 0 do
21
22
 
22
23
  t.datetime :created_at
23
24
  end
25
+
26
+ add_column :tags, :taggings_count, :integer, default: 0
24
27
  end
@@ -1,10 +1,9 @@
1
- require "minitest/unit"
2
- require "minitest/autorun"
3
- require "mocha/setup"
4
1
  require "active_record"
5
2
  require "active_support/core_ext/module"
6
3
  require "assert_difference"
7
4
  require "acts-as-taggable-on"
5
+ require "minitest/autorun"
6
+ require "mocha/setup"
8
7
  require_relative "../lib/log_book"
9
8
 
10
9
  FileUtils.rm("#{File.dirname(__FILE__)}/db/log_book.sqlite", :force => true)
@@ -22,7 +21,7 @@ CreateLogBookEvents.up
22
21
  load("#{File.dirname(__FILE__)}/schema.rb")
23
22
  load("#{File.dirname(__FILE__)}/models.rb")
24
23
 
25
- class MiniTest::Unit::TestCase
24
+ class MiniTest::Test
26
25
  include AssertDifference
27
26
  FIXTURES = File.expand_path("#{File.dirname(__FILE__)}/fixtures")
28
27
  end
metadata CHANGED
@@ -1,144 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Fernando Guillen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-13 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 4.0.2
19
+ version: 4.1.4
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 4.0.2
26
+ version: 4.1.4
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: protected_attributes
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: acts-as-taggable-on
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - '='
52
46
  - !ruby/object:Gem::Version
53
- version: 2.4.1
47
+ version: 3.3.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - '='
60
53
  - !ruby/object:Gem::Version
61
- version: 2.4.1
54
+ version: 3.3.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: '1.3'
61
+ version: 1.6.3
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
- version: '1.3'
68
+ version: 1.6.3
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: mocha
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: sqlite3
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: assert_difference
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: minitest
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 5.4.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 5.4.0
142
139
  description: Storing an events log book
143
140
  email:
144
141
  - fguillen.mail@gmail.com
@@ -169,27 +166,26 @@ files:
169
166
  homepage: https://github.com/fguillen/LogBook
170
167
  licenses:
171
168
  - MIT
169
+ metadata: {}
172
170
  post_install_message:
173
171
  rdoc_options: []
174
172
  require_paths:
175
173
  - lib
176
174
  required_ruby_version: !ruby/object:Gem::Requirement
177
- none: false
178
175
  requirements:
179
- - - ! '>='
176
+ - - '>='
180
177
  - !ruby/object:Gem::Version
181
178
  version: '0'
182
179
  required_rubygems_version: !ruby/object:Gem::Requirement
183
- none: false
184
180
  requirements:
185
- - - ! '>='
181
+ - - '>='
186
182
  - !ruby/object:Gem::Version
187
183
  version: '0'
188
184
  requirements: []
189
185
  rubyforge_project:
190
- rubygems_version: 1.8.23
186
+ rubygems_version: 2.0.3
191
187
  signing_key:
192
- specification_version: 3
188
+ specification_version: 4
193
189
  summary: Storing an events log book
194
190
  test_files:
195
191
  - test/db/.keep