rails_current 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Rakefile +26 -40
- data/lib/rails_current.rb +5 -1
- data/rails_current.gemspec +37 -0
- metadata +8 -19
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmIxZDYzN2Q4NGU5ODg0ZDZkYThjYzBkNWFlNTJmOTI3YWZiNzVhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTcxMWVhZGNhYTkwZWQ2OTY2N2RmOWEwZDdmNDAxZGZjNzYxZmE5Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2Y1YmI3ZmMyYjg1NWRjZDQwMDM3NmZjOTdlOTU3NzE2YWI3MjVlMDYyNmI5
|
10
|
+
ZjY5OTQ5YWViMTA2Njg2YTY3NjlmMWIyZDhiNDYwZjgwZmMwZDkxMTI4NjU5
|
11
|
+
NjE4MTFiMTZjYjk5ZGZiMzY4MDQ3NGUyZjgyYWNkN2IyNzJkYzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmU0MGM1YWU3NDkyZDA1ZjBlYzliMmUxOTBlZmI2NDM3NDhjMTAyNmE0MmQz
|
14
|
+
M2I5MDI0N2EwZDAxMGIzNDI2YjBjMGQ4ZmY0NDgwYWY2ZTg5NDVlMmU3ZTMz
|
15
|
+
ZjFkNDQ5YjZkNzkzZjAwOGM3NDE3YTY5NDU3NDZhNzhmOTQ4MzQ=
|
data/Rakefile
CHANGED
@@ -3,6 +3,9 @@ This.author = "Ara T. Howard"
|
|
3
3
|
This.email = "ara.t.howard@gmail.com"
|
4
4
|
This.homepage = "https://github.com/ahoward/#{ This.lib }"
|
5
5
|
|
6
|
+
task :license do
|
7
|
+
open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
|
8
|
+
end
|
6
9
|
|
7
10
|
task :default do
|
8
11
|
puts((Rake::Task.tasks.map{|task| task.name.gsub(/::/,':')} - ['default']).sort)
|
@@ -29,7 +32,7 @@ def run_tests!(which = nil)
|
|
29
32
|
|
30
33
|
test_rbs.each_with_index do |test_rb, index|
|
31
34
|
testno = index + 1
|
32
|
-
command = "#{
|
35
|
+
command = "#{ This.ruby } -w -I ./lib -I ./test/lib #{ test_rb }"
|
33
36
|
|
34
37
|
puts
|
35
38
|
say(div, :color => :cyan, :bold => true)
|
@@ -60,7 +63,7 @@ end
|
|
60
63
|
task :gemspec do
|
61
64
|
ignore_extensions = ['git', 'svn', 'tmp', /sw./, 'bak', 'gem']
|
62
65
|
ignore_directories = ['pkg']
|
63
|
-
ignore_files = ['test/log'
|
66
|
+
ignore_files = ['test/log']
|
64
67
|
|
65
68
|
shiteless =
|
66
69
|
lambda do |list|
|
@@ -87,9 +90,10 @@ task :gemspec do
|
|
87
90
|
files = shiteless[Dir::glob("**/**")]
|
88
91
|
executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
|
89
92
|
#has_rdoc = true #File.exist?('doc')
|
90
|
-
test_files =
|
93
|
+
test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
|
91
94
|
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
|
92
95
|
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
|
96
|
+
license = object.respond_to?(:license) ? object.license : "same as ruby's"
|
93
97
|
|
94
98
|
if This.extensions.nil?
|
95
99
|
This.extensions = []
|
@@ -100,51 +104,39 @@ task :gemspec do
|
|
100
104
|
end
|
101
105
|
extensions = [extensions].flatten.compact
|
102
106
|
|
103
|
-
# TODO
|
104
|
-
if This.dependencies.nil?
|
105
|
-
dependencies = []
|
106
|
-
else
|
107
|
-
case This.dependencies
|
108
|
-
when Hash
|
109
|
-
dependencies = This.dependencies.values
|
110
|
-
when Array
|
111
|
-
dependencies = This.dependencies
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
107
|
template =
|
116
108
|
if test(?e, 'gemspec.erb')
|
117
109
|
Template{ IO.read('gemspec.erb') }
|
118
110
|
else
|
119
111
|
Template {
|
120
112
|
<<-__
|
121
|
-
##
|
113
|
+
## #{ lib }.gemspec
|
122
114
|
#
|
123
115
|
|
124
116
|
Gem::Specification::new do |spec|
|
125
|
-
spec.name =
|
126
|
-
spec.version =
|
117
|
+
spec.name = #{ lib.inspect }
|
118
|
+
spec.version = #{ version.inspect }
|
127
119
|
spec.platform = Gem::Platform::RUBY
|
128
|
-
spec.summary =
|
129
|
-
spec.description =
|
120
|
+
spec.summary = #{ lib.inspect }
|
121
|
+
spec.description = #{ description.inspect }
|
122
|
+
spec.license = #{ license.inspect }
|
130
123
|
|
131
|
-
spec.files =\n
|
132
|
-
spec.executables =
|
124
|
+
spec.files =\n#{ files.sort.pretty_inspect }
|
125
|
+
spec.executables = #{ executables.inspect }
|
133
126
|
|
134
127
|
spec.require_path = "lib"
|
135
128
|
|
136
|
-
spec.test_files =
|
129
|
+
spec.test_files = #{ test_files.inspect }
|
137
130
|
|
138
|
-
|
139
|
-
|
140
|
-
<% end %>
|
131
|
+
### spec.add_dependency 'lib', '>= version'
|
132
|
+
#### spec.add_dependency 'map'
|
141
133
|
|
142
|
-
spec.extensions.push(
|
134
|
+
spec.extensions.push(*#{ extensions.inspect })
|
143
135
|
|
144
|
-
spec.rubyforge_project =
|
145
|
-
spec.author =
|
146
|
-
spec.email =
|
147
|
-
spec.homepage =
|
136
|
+
spec.rubyforge_project = #{ This.rubyforge_project.inspect }
|
137
|
+
spec.author = #{ This.author.inspect }
|
138
|
+
spec.email = #{ This.email.inspect }
|
139
|
+
spec.homepage = #{ This.homepage.inspect }
|
148
140
|
end
|
149
141
|
__
|
150
142
|
}
|
@@ -188,8 +180,8 @@ task :readme do
|
|
188
180
|
end
|
189
181
|
|
190
182
|
template =
|
191
|
-
if test(?e, '
|
192
|
-
Template{ IO.read('
|
183
|
+
if test(?e, 'README.erb')
|
184
|
+
Template{ IO.read('README.erb') }
|
193
185
|
else
|
194
186
|
Template {
|
195
187
|
<<-__
|
@@ -280,12 +272,6 @@ BEGIN {
|
|
280
272
|
end
|
281
273
|
This.version = version
|
282
274
|
|
283
|
-
# see if dependencies are export by the module
|
284
|
-
#
|
285
|
-
if This.object.respond_to?(:dependencies)
|
286
|
-
This.dependencies = This.object.dependencies
|
287
|
-
end
|
288
|
-
|
289
275
|
# we need to know the name of the lib an it's version
|
290
276
|
#
|
291
277
|
abort('no lib') unless This.lib
|
@@ -293,7 +279,7 @@ BEGIN {
|
|
293
279
|
|
294
280
|
# discover full path to this ruby executable
|
295
281
|
#
|
296
|
-
c =
|
282
|
+
c = Config::CONFIG
|
297
283
|
bindir = c["bindir"] || c['BINDIR']
|
298
284
|
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
|
299
285
|
ruby_ext = c['EXEEXT'] || ''
|
data/lib/rails_current.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Current
|
4
4
|
def Current.version
|
5
|
-
'1.8.
|
5
|
+
'1.8.1'
|
6
6
|
end
|
7
7
|
|
8
8
|
def Current.dependencies
|
@@ -11,6 +11,10 @@ module Current
|
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
|
+
def Current.description
|
15
|
+
"track 'current_user' et all in a tidy, global, and thread-safe fashion for your rails apps"
|
16
|
+
end
|
17
|
+
|
14
18
|
begin
|
15
19
|
require 'rubygems'
|
16
20
|
rescue LoadError
|
@@ -0,0 +1,37 @@
|
|
1
|
+
## rails_current.gemspec
|
2
|
+
#
|
3
|
+
|
4
|
+
Gem::Specification::new do |spec|
|
5
|
+
spec.name = "rails_current"
|
6
|
+
spec.version = "1.8.1"
|
7
|
+
spec.platform = Gem::Platform::RUBY
|
8
|
+
spec.summary = "rails_current"
|
9
|
+
spec.description = "track 'current_user' et all in a tidy, global, and thread-safe fashion for your rails apps"
|
10
|
+
spec.license = "same as ruby's"
|
11
|
+
|
12
|
+
spec.files =
|
13
|
+
["README.md",
|
14
|
+
"Rakefile",
|
15
|
+
"lib",
|
16
|
+
"lib/rails_current.rb",
|
17
|
+
"rails_current.gemspec",
|
18
|
+
"test",
|
19
|
+
"test/rails_current_test.rb",
|
20
|
+
"test/testing.rb"]
|
21
|
+
|
22
|
+
spec.executables = []
|
23
|
+
|
24
|
+
spec.require_path = "lib"
|
25
|
+
|
26
|
+
spec.test_files = nil
|
27
|
+
|
28
|
+
### spec.add_dependency 'lib', '>= version'
|
29
|
+
#### spec.add_dependency 'map'
|
30
|
+
|
31
|
+
spec.extensions.push(*[])
|
32
|
+
|
33
|
+
spec.rubyforge_project = "codeforpeople"
|
34
|
+
spec.author = "Ara T. Howard"
|
35
|
+
spec.email = "ara.t.howard@gmail.com"
|
36
|
+
spec.homepage = "https://github.com/ahoward/rails_current"
|
37
|
+
end
|
metadata
CHANGED
@@ -1,30 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_current
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ! '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0.1
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ! '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 6.0.1
|
27
|
-
description: ! 'description: rails_current kicks the ass'
|
11
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: track 'current_user' et all in a tidy, global, and thread-safe fashion
|
14
|
+
for your rails apps
|
28
15
|
email: ara.t.howard@gmail.com
|
29
16
|
executables: []
|
30
17
|
extensions: []
|
@@ -33,10 +20,12 @@ files:
|
|
33
20
|
- README.md
|
34
21
|
- Rakefile
|
35
22
|
- lib/rails_current.rb
|
23
|
+
- rails_current.gemspec
|
36
24
|
- test/rails_current_test.rb
|
37
25
|
- test/testing.rb
|
38
26
|
homepage: https://github.com/ahoward/rails_current
|
39
|
-
licenses:
|
27
|
+
licenses:
|
28
|
+
- same as ruby's
|
40
29
|
metadata: {}
|
41
30
|
post_install_message:
|
42
31
|
rdoc_options: []
|