tokens 2.0.0 → 2.0.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tokens.rb +3 -2
- data/lib/tokens/railtie.rb +2 -4
- data/lib/tokens/version.rb +1 -1
- data/spec/spec_helper.rb +17 -2
- metadata +2 -4
- data/spec/support/config/boot.rb +0 -17
- data/spec/support/config/database.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 927604735cca4a1ee535acce25df1a9080fc22d6
|
4
|
+
data.tar.gz: b169729cf1bd0c81c2324426006f341b5252dfdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba80c4731b5397a0c8255320dd692ac5fdbb7367321cbff770f889b6423402d3e53118a074b211620ac2ceb1d7e27e011c84367465dbf24cc9a0eff242566802
|
7
|
+
data.tar.gz: 9d5c26cfb70f98f48ffa52447f95e93f6370cd8fdc9dca8d4fc483425d3e6e96bf1d900800ecc9130be0e6fb0c1e419bd7e7aab22e8ef230935b80d46ec72405
|
data/Gemfile.lock
CHANGED
data/lib/tokens.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
require "rails/railtie"
|
2
1
|
require "active_record"
|
3
2
|
require "securerandom"
|
4
3
|
|
5
4
|
require "tokens/active_record"
|
6
5
|
require "tokens/token"
|
7
6
|
require "tokens/version"
|
8
|
-
require "tokens/railtie"
|
7
|
+
require "tokens/railtie" if defined?(Rails)
|
8
|
+
|
9
|
+
::ActiveRecord::Base.send :include, Tokens::ActiveRecord
|
data/lib/tokens/railtie.rb
CHANGED
data/lib/tokens/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,22 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
|
-
|
3
|
-
require
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rails"
|
5
|
+
require "rails/railtie"
|
6
|
+
require "action_controller/railtie"
|
4
7
|
require "rspec/rails"
|
8
|
+
require "tokens"
|
9
|
+
|
10
|
+
module Tokens
|
11
|
+
class Application < Rails::Application
|
12
|
+
config.root = File.dirname(__FILE__) + "/.."
|
13
|
+
config.active_support.deprecation = :log
|
14
|
+
config.eager_load = true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
Tokens::Application.initialize!
|
19
|
+
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
|
5
20
|
|
6
21
|
# Load database schema
|
7
22
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tokens
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,8 +106,6 @@ files:
|
|
106
106
|
- lib/tokens/version.rb
|
107
107
|
- spec/schema.rb
|
108
108
|
- spec/spec_helper.rb
|
109
|
-
- spec/support/config/boot.rb
|
110
|
-
- spec/support/config/database.yml
|
111
109
|
- spec/support/models.rb
|
112
110
|
- spec/tokens_spec.rb
|
113
111
|
- templates/tokens.rb
|
data/spec/support/config/boot.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
ENV["BUNDLE_GEMFILE"] = ENV.fetch("BUNDLE_GEMFILE") {
|
2
|
-
File.dirname(__FILE__) + "/../../../Gemfile"
|
3
|
-
}
|
4
|
-
|
5
|
-
require "bundler/setup"
|
6
|
-
require "rails/all"
|
7
|
-
Bundler.require(:default)
|
8
|
-
|
9
|
-
module Tokens
|
10
|
-
class Application < Rails::Application
|
11
|
-
config.root = File.dirname(__FILE__) + "/.."
|
12
|
-
config.active_support.deprecation = :log
|
13
|
-
config.eager_load = true
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Tokens::Application.initialize!
|