mini_token 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ source :gemcutter
2
2
 
3
3
  gem "sequel"
4
4
  gem "sqlite3-ruby"
5
+ gem "jeweler"
5
6
 
6
7
  group :test do
7
8
  gem "shoulda"
@@ -1,6 +1,12 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ git (1.2.5)
5
+ jeweler (1.5.2)
6
+ bundler (~> 1.0.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.8.7)
4
10
  sequel (3.16.0)
5
11
  shoulda (2.11.3)
6
12
  sqlite3-ruby (1.3.1)
@@ -9,6 +15,7 @@ PLATFORMS
9
15
  ruby
10
16
 
11
17
  DEPENDENCIES
18
+ jeweler
12
19
  sequel
13
20
  shoulda
14
21
  sqlite3-ruby
data/Rakefile CHANGED
@@ -39,7 +39,7 @@ rescue LoadError
39
39
  end
40
40
  end
41
41
 
42
- task :test => :check_dependencies
42
+ # task :test => :check_dependencies
43
43
 
44
44
  task :default => :test
45
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
Binary file
@@ -1,5 +1,5 @@
1
1
  require 'sequel'
2
- TOKEN_ENV = 'production'
2
+ TOKEN_ENV = defined?(RAILS_ENV) ? RAILS_ENV : 'production'
3
3
 
4
4
  class MiniToken < Struct.new(:db, :token)
5
5
  TOKEN_SIZE = 6
@@ -1,61 +1,67 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mini_token}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Antonio Roberto Silva"]
12
- s.date = %q{2010-10-16}
12
+ s.date = %q{2011-03-07}
13
13
  s.description = %q{Generate simple tokens for short url and other things}
14
14
  s.email = %q{forevertonny@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".bundle/config",
21
- ".document",
22
- ".gitignore",
23
- ".rvmrc",
24
- "Gemfile",
25
- "Gemfile.lock",
26
- "LICENSE",
27
- "README.rdoc",
28
- "Rakefile",
29
- "VERSION",
30
- "db/mini_token.db",
31
- "db/mini_token_test.db",
32
- "lib/mini_token.rb",
33
- "mini_token.gemspec",
34
- "test/helper.rb",
35
- "test/test_mini_token.rb"
21
+ ".document",
22
+ ".rvmrc",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "db/mini_token.db",
30
+ "db/mini_token_test.db",
31
+ "lib/mini_token.rb",
32
+ "mini_token.gemspec",
33
+ "test/helper.rb",
34
+ "test/test_mini_token.rb"
36
35
  ]
37
36
  s.homepage = %q{http://github.com/devton/mini_token}
38
- s.rdoc_options = ["--charset=UTF-8"]
39
37
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.7}
38
+ s.rubygems_version = %q{1.5.3}
41
39
  s.summary = %q{Simple token generator}
42
40
  s.test_files = [
43
41
  "test/helper.rb",
44
- "test/test_mini_token.rb"
42
+ "test/test_mini_token.rb"
45
43
  ]
46
44
 
47
45
  if s.respond_to? :specification_version then
48
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
46
  s.specification_version = 3
50
47
 
51
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<sequel>, [">= 0"])
50
+ s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 0"])
51
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
52
52
  s.add_runtime_dependency(%q<sequel>, [">= 3.16.0"])
53
53
  s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.3.1"])
54
54
  else
55
+ s.add_dependency(%q<sequel>, [">= 0"])
56
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
57
+ s.add_dependency(%q<jeweler>, [">= 0"])
55
58
  s.add_dependency(%q<sequel>, [">= 3.16.0"])
56
59
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.1"])
57
60
  end
58
61
  else
62
+ s.add_dependency(%q<sequel>, [">= 0"])
63
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
64
+ s.add_dependency(%q<jeweler>, [">= 0"])
59
65
  s.add_dependency(%q<sequel>, [">= 3.16.0"])
60
66
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.1"])
61
67
  end
@@ -12,6 +12,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
12
12
  require 'mini_token'
13
13
  Bundler.setup
14
14
 
15
+ TOKEN_ENV = defined?(RAILS_ENV) ? RAILS_ENV : 'test'
15
16
 
16
17
  class Test::Unit::TestCase
17
18
  end
@@ -1,6 +1,5 @@
1
1
  require 'helper'
2
2
  MiniTest::Unit.autorun
3
- TOKEN_ENV = 'test'
4
3
 
5
4
  describe MiniToken do
6
5
  describe "MiniToken Constants" do
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_token
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 0
9
- version: 1.1.0
4
+ prerelease:
5
+ version: 1.1.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Antonio Roberto Silva
@@ -14,39 +10,64 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-10-16 00:00:00 -03:00
13
+ date: 2011-03-07 00:00:00 -03:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: sequel
22
- prerelease: false
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
24
19
  none: false
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 16
31
- - 0
32
- version: 3.16.0
23
+ version: "0"
33
24
  type: :runtime
25
+ prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
28
  name: sqlite3-ruby
37
- prerelease: false
38
29
  requirement: &id002 !ruby/object:Gem::Requirement
39
30
  none: false
40
31
  requirements:
41
32
  - - ">="
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 3
46
- - 1
47
- version: 1.3.1
34
+ version: "0"
48
35
  type: :runtime
36
+ prerelease: false
49
37
  version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: jeweler
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: sequel
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 3.16.0
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: sqlite3-ruby
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.1
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: *id005
50
71
  description: Generate simple tokens for short url and other things
51
72
  email: forevertonny@gmail.com
52
73
  executables: []
@@ -59,7 +80,6 @@ extra_rdoc_files:
59
80
  files:
60
81
  - .bundle/config
61
82
  - .document
62
- - .gitignore
63
83
  - .rvmrc
64
84
  - Gemfile
65
85
  - Gemfile.lock
@@ -78,8 +98,8 @@ homepage: http://github.com/devton/mini_token
78
98
  licenses: []
79
99
 
80
100
  post_install_message:
81
- rdoc_options:
82
- - --charset=UTF-8
101
+ rdoc_options: []
102
+
83
103
  require_paths:
84
104
  - lib
85
105
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -87,21 +107,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
107
  requirements:
88
108
  - - ">="
89
109
  - !ruby/object:Gem::Version
90
- segments:
91
- - 0
92
110
  version: "0"
93
111
  required_rubygems_version: !ruby/object:Gem::Requirement
94
112
  none: false
95
113
  requirements:
96
114
  - - ">="
97
115
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
116
  version: "0"
101
117
  requirements: []
102
118
 
103
119
  rubyforge_project:
104
- rubygems_version: 1.3.7
120
+ rubygems_version: 1.5.3
105
121
  signing_key:
106
122
  specification_version: 3
107
123
  summary: Simple token generator
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC