protokoll 2.0.1 → 2.0.2
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 +5 -5
- data/lib/protokoll/counter.rb +11 -6
- data/lib/protokoll/formater.rb +19 -17
- data/lib/protokoll/version.rb +1 -1
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/config/application.rb +0 -6
- data/test/dummy/config/environments/development.rb +0 -6
- data/test/dummy/config/environments/production.rb +0 -15
- data/test/dummy/config/environments/test.rb +0 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20110923024431_create_protocols.rb +1 -1
- data/test/dummy/db/migrate/20110928013630_create_calls.rb +1 -1
- data/test/dummy/db/migrate/20120222164124_create_custom_auto_increments.rb +1 -1
- data/test/dummy/db/migrate/20160310030821_add_scope_by_to_custom_auto_increments.rb +1 -1
- data/test/dummy/db/schema.rb +21 -24
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +84 -39
- data/test/dummy/log/test.log +35502 -3031
- data/test/dummy/tmp/development_secret.txt +1 -0
- data/test/protokoll_test.rb +5 -5
- metadata +35 -32
@@ -0,0 +1 @@
|
|
1
|
+
628e9960e619a02ae64473741b888ebbe0eb8640e3d13709658ccd99dab83961d4ff1babf4c1cf41f373efd4d1cb565890fc7210e6c920683013c06f3046f0f0
|
data/test/protokoll_test.rb
CHANGED
@@ -43,7 +43,7 @@ class ProtokollTest < ActiveSupport::TestCase
|
|
43
43
|
protokoll :number
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
Protocol.create
|
47
47
|
protocol2 = Protocol.create
|
48
48
|
|
49
49
|
assert_equal "20110900002", protocol2.number
|
@@ -106,7 +106,7 @@ class ProtokollTest < ActiveSupport::TestCase
|
|
106
106
|
protokoll :number, :pattern => "A##"
|
107
107
|
end
|
108
108
|
|
109
|
-
|
109
|
+
Protocol.create
|
110
110
|
protocol2 = Protocol.create
|
111
111
|
assert_equal "A02", protocol2.number
|
112
112
|
end
|
@@ -116,8 +116,8 @@ class ProtokollTest < ActiveSupport::TestCase
|
|
116
116
|
protokoll :number, :pattern => "A##"
|
117
117
|
end
|
118
118
|
|
119
|
-
|
120
|
-
|
119
|
+
Protocol.create
|
120
|
+
Protocol.create
|
121
121
|
protocol3 = Protocol.create
|
122
122
|
assert_equal "A03", protocol3.number
|
123
123
|
end
|
@@ -174,7 +174,7 @@ class ProtokollTest < ActiveSupport::TestCase
|
|
174
174
|
end
|
175
175
|
|
176
176
|
time = Time.local(2011, 9, 25, 12, 3, 0) # 2011
|
177
|
-
|
177
|
+
Protocol.create
|
178
178
|
time = Time.local(2012, 9, 25, 12, 3, 0) # 2012 - exactly 1 year after
|
179
179
|
Timecop.travel(time)
|
180
180
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protokoll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Celso Dantas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- lib/protokoll/version.rb
|
62
62
|
- lib/tasks/protokoll_tasks.rake
|
63
63
|
- test/dummy/Rakefile
|
64
|
+
- test/dummy/app/assets/config/manifest.js
|
64
65
|
- test/dummy/app/assets/javascripts/application.js
|
65
66
|
- test/dummy/app/assets/stylesheets/application.css
|
66
67
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -99,13 +100,14 @@ files:
|
|
99
100
|
- test/dummy/public/500.html
|
100
101
|
- test/dummy/public/favicon.ico
|
101
102
|
- test/dummy/script/rails
|
103
|
+
- test/dummy/tmp/development_secret.txt
|
102
104
|
- test/protokoll_test.rb
|
103
105
|
- test/test_helper.rb
|
104
106
|
homepage: https://github.com/celsodantas/protokoll
|
105
107
|
licenses:
|
106
108
|
- MIT
|
107
109
|
metadata: {}
|
108
|
-
post_install_message:
|
110
|
+
post_install_message:
|
109
111
|
rdoc_options: []
|
110
112
|
require_paths:
|
111
113
|
- lib
|
@@ -120,51 +122,52 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
122
|
- !ruby/object:Gem::Version
|
121
123
|
version: '0'
|
122
124
|
requirements: []
|
123
|
-
|
124
|
-
|
125
|
-
signing_key:
|
125
|
+
rubygems_version: 3.1.6
|
126
|
+
signing_key:
|
126
127
|
specification_version: 4
|
127
128
|
summary: A simple Rails gem to create custom autoincrement Time base values to a database
|
128
129
|
column
|
129
130
|
test_files:
|
130
|
-
- test/dummy/app/assets/javascripts/application.js
|
131
|
-
- test/dummy/app/assets/stylesheets/application.css
|
132
|
-
- test/dummy/app/controllers/application_controller.rb
|
133
|
-
- test/dummy/app/helpers/application_helper.rb
|
134
131
|
- test/dummy/app/models/call_defined_in_tests.rb
|
135
132
|
- test/dummy/app/models/protocol_defined_in_tests.rb
|
133
|
+
- test/dummy/app/controllers/application_controller.rb
|
136
134
|
- test/dummy/app/views/layouts/application.html.erb
|
137
|
-
- test/dummy/config/
|
138
|
-
- test/dummy/
|
139
|
-
- test/dummy/
|
140
|
-
- test/dummy/
|
141
|
-
- test/dummy/config/
|
135
|
+
- test/dummy/app/assets/config/manifest.js
|
136
|
+
- test/dummy/app/assets/javascripts/application.js
|
137
|
+
- test/dummy/app/assets/stylesheets/application.css
|
138
|
+
- test/dummy/app/helpers/application_helper.rb
|
139
|
+
- test/dummy/config/routes.rb
|
140
|
+
- test/dummy/config/locales/en.yml
|
142
141
|
- test/dummy/config/environments/production.rb
|
142
|
+
- test/dummy/config/environments/development.rb
|
143
143
|
- test/dummy/config/environments/test.rb
|
144
|
+
- test/dummy/config/environment.rb
|
145
|
+
- test/dummy/config/application.rb
|
146
|
+
- test/dummy/config/database.yml
|
147
|
+
- test/dummy/config/boot.rb
|
144
148
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
145
|
-
- test/dummy/config/initializers/inflections.rb
|
146
149
|
- test/dummy/config/initializers/mime_types.rb
|
147
|
-
- test/dummy/config/initializers/secret_token.rb
|
148
150
|
- test/dummy/config/initializers/session_store.rb
|
149
151
|
- test/dummy/config/initializers/wrap_parameters.rb
|
150
|
-
- test/dummy/config/
|
151
|
-
- test/dummy/config/
|
152
|
+
- test/dummy/config/initializers/secret_token.rb
|
153
|
+
- test/dummy/config/initializers/inflections.rb
|
152
154
|
- test/dummy/config.ru
|
153
|
-
- test/dummy/
|
154
|
-
- test/dummy/
|
155
|
-
- test/dummy/
|
156
|
-
- test/dummy/
|
157
|
-
- test/dummy/
|
155
|
+
- test/dummy/script/rails
|
156
|
+
- test/dummy/Rakefile
|
157
|
+
- test/dummy/public/favicon.ico
|
158
|
+
- test/dummy/public/422.html
|
159
|
+
- test/dummy/public/500.html
|
160
|
+
- test/dummy/public/404.html
|
158
161
|
- test/dummy/db/schema.rb
|
159
162
|
- test/dummy/db/seeds.rb
|
160
163
|
- test/dummy/db/test.sqlite3
|
161
|
-
- test/dummy/
|
164
|
+
- test/dummy/db/migrate/20120222164124_create_custom_auto_increments.rb
|
165
|
+
- test/dummy/db/migrate/20160310030821_add_scope_by_to_custom_auto_increments.rb
|
166
|
+
- test/dummy/db/migrate/20110923024431_create_protocols.rb
|
167
|
+
- test/dummy/db/migrate/20110928013630_create_calls.rb
|
168
|
+
- test/dummy/db/development.sqlite3
|
162
169
|
- test/dummy/log/test.log
|
163
|
-
- test/dummy/
|
164
|
-
- test/dummy/
|
165
|
-
- test/dummy/public/500.html
|
166
|
-
- test/dummy/public/favicon.ico
|
167
|
-
- test/dummy/Rakefile
|
168
|
-
- test/dummy/script/rails
|
170
|
+
- test/dummy/log/development.log
|
171
|
+
- test/dummy/tmp/development_secret.txt
|
169
172
|
- test/protokoll_test.rb
|
170
173
|
- test/test_helper.rb
|