cone 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +1 -1
- data/cone.gemspec +1 -1
- data/lib/cone.rb +1 -1
- data/test/Gemfile +2 -3
- data/test/Gemfile.lock +79 -88
- data/test/config/application.rb +3 -43
- data/test/config/environments/test.rb +0 -3
- data/test/config/initializers/secret_token.rb +1 -0
- data/test/test/unit/cone_init_test.rb +2 -2
- metadata +9 -13
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eecbec7c9ce684d3272a2e211c0c36c4c2a322bc
|
4
|
+
data.tar.gz: cb1e1a4e50933961c6f52b8a4d1ee3809b4e8068
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2a20edf8c3fe2662843c99119a942f6d0dfb80d23f303cf8773f5f0afabd9ec58108e1a253e8a9db55da222e34190aec187fe657a6ebfc5e4a8b64f878438881
|
7
|
+
data.tar.gz: 9ce8c991936c997ce6dc90f22d70ff366a1b8f02da2c406f5a07d70489cea07869c614e2de856e0e6bb9dbc30ea70f9376b64d053766940435007d21bb77969a
|
data/Rakefile
CHANGED
data/cone.gemspec
CHANGED
data/lib/cone.rb
CHANGED
@@ -3,7 +3,7 @@ module Cone
|
|
3
3
|
class Railtie < ::Rails::Railtie
|
4
4
|
config.before_initialize do
|
5
5
|
# clear the assets cache otherwise routes don't get reloaded on server restart
|
6
|
-
assets_cache = ::Rails.application.config.assets[:cache_store][1]
|
6
|
+
assets_cache = ::Rails.application.config.instance_eval { @assets }[:cache_store][1]
|
7
7
|
ActiveSupport::Cache::FileStore.new(assets_cache).clear if File.directory?(assets_cache)
|
8
8
|
end
|
9
9
|
end
|
data/test/Gemfile
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '
|
3
|
+
gem 'rails', '4.0.0'
|
4
4
|
gem 'cone', path: '..'
|
5
5
|
|
6
6
|
group :development, :test do
|
7
7
|
gem 'thin'
|
8
|
-
gem 'pry'
|
9
8
|
gem 'pry-rails'
|
10
|
-
gem 'capybara', '2.0.
|
9
|
+
gem 'capybara', '2.0.2'
|
11
10
|
gem 'turn', '0.9.6'
|
12
11
|
end
|
data/test/Gemfile.lock
CHANGED
@@ -7,132 +7,124 @@ PATH
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (
|
11
|
-
actionpack (=
|
12
|
-
mail (~> 2.
|
13
|
-
actionpack (
|
14
|
-
|
15
|
-
|
16
|
-
builder (~> 3.0.0)
|
10
|
+
actionmailer (4.0.0)
|
11
|
+
actionpack (= 4.0.0)
|
12
|
+
mail (~> 2.5.3)
|
13
|
+
actionpack (4.0.0)
|
14
|
+
activesupport (= 4.0.0)
|
15
|
+
builder (~> 3.1.0)
|
17
16
|
erubis (~> 2.7.0)
|
18
|
-
|
19
|
-
rack (~>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
i18n (~> 0.6)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
addressable (2.3.2)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
activemodel (4.0.0)
|
20
|
+
activesupport (= 4.0.0)
|
21
|
+
builder (~> 3.1.0)
|
22
|
+
activerecord (4.0.0)
|
23
|
+
activemodel (= 4.0.0)
|
24
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
25
|
+
activesupport (= 4.0.0)
|
26
|
+
arel (~> 4.0.0)
|
27
|
+
activerecord-deprecated_finders (1.0.3)
|
28
|
+
activesupport (4.0.0)
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
30
|
+
minitest (~> 4.2)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
thread_safe (~> 0.1)
|
33
|
+
tzinfo (~> 0.3.37)
|
38
34
|
ansi (1.4.3)
|
39
|
-
arel (
|
40
|
-
|
41
|
-
|
35
|
+
arel (4.0.0)
|
36
|
+
atomic (1.1.9)
|
37
|
+
builder (3.1.4)
|
38
|
+
capybara (2.0.2)
|
42
39
|
mime-types (>= 1.16)
|
43
40
|
nokogiri (>= 1.3.3)
|
44
41
|
rack (>= 1.0.0)
|
45
42
|
rack-test (>= 0.5.4)
|
46
43
|
selenium-webdriver (~> 2.0)
|
47
44
|
xpath (~> 1.0.0)
|
48
|
-
childprocess (0.3.
|
49
|
-
ffi (~> 1.0, >= 1.0.
|
50
|
-
coderay (1.0.
|
51
|
-
coffee-rails (
|
45
|
+
childprocess (0.3.9)
|
46
|
+
ffi (~> 1.0, >= 1.0.11)
|
47
|
+
coderay (1.0.9)
|
48
|
+
coffee-rails (4.0.0)
|
52
49
|
coffee-script (>= 2.2.0)
|
53
|
-
railties (
|
50
|
+
railties (>= 4.0.0.beta, < 5.0)
|
54
51
|
coffee-script (2.2.0)
|
55
52
|
coffee-script-source
|
56
53
|
execjs
|
57
|
-
coffee-script-source (1.
|
54
|
+
coffee-script-source (1.6.2)
|
58
55
|
daemons (1.1.9)
|
59
56
|
erubis (2.7.0)
|
60
|
-
eventmachine (1.0.
|
57
|
+
eventmachine (1.0.3)
|
61
58
|
execjs (1.4.0)
|
62
59
|
multi_json (~> 1.0)
|
63
|
-
ffi (1.
|
64
|
-
hike (1.2.
|
65
|
-
i18n (0.6.
|
66
|
-
|
67
|
-
json (1.7.5)
|
68
|
-
libwebsocket (0.1.7.1)
|
69
|
-
addressable
|
70
|
-
websocket
|
71
|
-
mail (2.4.4)
|
72
|
-
i18n (>= 0.4.0)
|
60
|
+
ffi (1.9.0)
|
61
|
+
hike (1.2.3)
|
62
|
+
i18n (0.6.4)
|
63
|
+
mail (2.5.4)
|
73
64
|
mime-types (~> 1.16)
|
74
65
|
treetop (~> 1.4.8)
|
75
66
|
method_source (0.8.1)
|
76
|
-
mime-types (1.
|
77
|
-
|
78
|
-
|
67
|
+
mime-types (1.23)
|
68
|
+
mini_portile (0.5.0)
|
69
|
+
minitest (4.7.5)
|
70
|
+
multi_json (1.7.7)
|
71
|
+
nokogiri (1.6.0)
|
72
|
+
mini_portile (~> 0.5.0)
|
79
73
|
polyglot (0.3.3)
|
80
|
-
pry (0.9.
|
74
|
+
pry (0.9.12.2)
|
81
75
|
coderay (~> 1.0.5)
|
82
76
|
method_source (~> 0.8)
|
83
|
-
slop (~> 3.
|
84
|
-
pry-rails (0.
|
77
|
+
slop (~> 3.4)
|
78
|
+
pry-rails (0.3.1)
|
85
79
|
pry (>= 0.9.10)
|
86
|
-
rack (1.
|
87
|
-
rack-cache (1.2)
|
88
|
-
rack (>= 0.4)
|
89
|
-
rack-ssl (1.3.2)
|
90
|
-
rack
|
80
|
+
rack (1.5.2)
|
91
81
|
rack-test (0.6.2)
|
92
82
|
rack (>= 1.0)
|
93
|
-
rails (
|
94
|
-
actionmailer (=
|
95
|
-
actionpack (=
|
96
|
-
activerecord (=
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
railties (
|
102
|
-
actionpack (=
|
103
|
-
activesupport (=
|
104
|
-
rack-ssl (~> 1.3.2)
|
83
|
+
rails (4.0.0)
|
84
|
+
actionmailer (= 4.0.0)
|
85
|
+
actionpack (= 4.0.0)
|
86
|
+
activerecord (= 4.0.0)
|
87
|
+
activesupport (= 4.0.0)
|
88
|
+
bundler (>= 1.3.0, < 2.0)
|
89
|
+
railties (= 4.0.0)
|
90
|
+
sprockets-rails (~> 2.0.0)
|
91
|
+
railties (4.0.0)
|
92
|
+
actionpack (= 4.0.0)
|
93
|
+
activesupport (= 4.0.0)
|
105
94
|
rake (>= 0.8.7)
|
106
|
-
|
107
|
-
|
108
|
-
rake (10.0.2)
|
109
|
-
rdoc (3.12)
|
110
|
-
json (~> 1.4)
|
95
|
+
thor (>= 0.18.1, < 2.0)
|
96
|
+
rake (10.1.0)
|
111
97
|
rubyzip (0.9.9)
|
112
|
-
selenium-webdriver (2.
|
98
|
+
selenium-webdriver (2.33.0)
|
113
99
|
childprocess (>= 0.2.5)
|
114
|
-
libwebsocket (~> 0.1.3)
|
115
100
|
multi_json (~> 1.0)
|
116
101
|
rubyzip
|
117
|
-
|
118
|
-
|
102
|
+
websocket (~> 1.0.4)
|
103
|
+
slop (3.4.5)
|
104
|
+
sprockets (2.10.0)
|
119
105
|
hike (~> 1.2)
|
120
106
|
multi_json (~> 1.0)
|
121
107
|
rack (~> 1.0)
|
122
108
|
tilt (~> 1.1, != 1.3.0)
|
123
|
-
|
109
|
+
sprockets-rails (2.0.0)
|
110
|
+
actionpack (>= 3.0)
|
111
|
+
activesupport (>= 3.0)
|
112
|
+
sprockets (~> 2.8)
|
113
|
+
thin (1.5.1)
|
124
114
|
daemons (>= 1.0.9)
|
125
115
|
eventmachine (>= 0.12.6)
|
126
116
|
rack (>= 1.0.0)
|
127
|
-
thor (0.
|
128
|
-
|
129
|
-
|
117
|
+
thor (0.18.1)
|
118
|
+
thread_safe (0.1.0)
|
119
|
+
atomic
|
120
|
+
tilt (1.4.1)
|
121
|
+
treetop (1.4.14)
|
130
122
|
polyglot
|
131
123
|
polyglot (>= 0.3.1)
|
132
124
|
turn (0.9.6)
|
133
125
|
ansi
|
134
|
-
tzinfo (0.3.
|
135
|
-
websocket (1.0.
|
126
|
+
tzinfo (0.3.37)
|
127
|
+
websocket (1.0.7)
|
136
128
|
xpath (1.0.0)
|
137
129
|
nokogiri (~> 1.3)
|
138
130
|
|
@@ -140,10 +132,9 @@ PLATFORMS
|
|
140
132
|
ruby
|
141
133
|
|
142
134
|
DEPENDENCIES
|
143
|
-
capybara (= 2.0.
|
135
|
+
capybara (= 2.0.2)
|
144
136
|
cone!
|
145
|
-
pry
|
146
137
|
pry-rails
|
147
|
-
rails (=
|
138
|
+
rails (= 4.0.0)
|
148
139
|
thin
|
149
140
|
turn (= 0.9.6)
|
data/test/config/application.rb
CHANGED
@@ -4,16 +4,12 @@ require File.expand_path('../boot', __FILE__)
|
|
4
4
|
# require "active_record/railtie"
|
5
5
|
require "action_controller/railtie"
|
6
6
|
require "action_mailer/railtie"
|
7
|
-
require "active_resource/railtie"
|
8
7
|
require "sprockets/railtie"
|
9
8
|
require "rails/test_unit/railtie"
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
# If you want your assets lazily compiled in production, use this line
|
15
|
-
# Bundler.require(:default, :assets, Rails.env)
|
16
|
-
end
|
10
|
+
# Require the gems listed in Gemfile, including any gems
|
11
|
+
# you've limited to :test, :development, or :production.
|
12
|
+
Bundler.require(:default, Rails.env)
|
17
13
|
|
18
14
|
module ConeTest
|
19
15
|
class Application < Rails::Application
|
@@ -21,16 +17,6 @@ module ConeTest
|
|
21
17
|
# Application configuration should go into files in config/initializers
|
22
18
|
# -- all .rb files in that directory are automatically loaded.
|
23
19
|
|
24
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
25
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
26
|
-
|
27
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
28
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
29
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
30
|
-
|
31
|
-
# Activate observers that should always be running.
|
32
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
33
|
-
|
34
20
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
35
21
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
36
22
|
# config.time_zone = 'Central Time (US & Canada)'
|
@@ -38,31 +24,5 @@ module ConeTest
|
|
38
24
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
39
25
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
40
26
|
# config.i18n.default_locale = :de
|
41
|
-
|
42
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
43
|
-
config.encoding = "utf-8"
|
44
|
-
|
45
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
46
|
-
config.filter_parameters += [:password]
|
47
|
-
|
48
|
-
# Enable escaping HTML in JSON.
|
49
|
-
config.active_support.escape_html_entities_in_json = true
|
50
|
-
|
51
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
52
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
53
|
-
# like if you have constraints or database-specific column types
|
54
|
-
# config.active_record.schema_format = :sql
|
55
|
-
|
56
|
-
# Enforce whitelist mode for mass assignment.
|
57
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
58
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
59
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
60
|
-
# config.active_record.whitelist_attributes = true
|
61
|
-
|
62
|
-
# Enable the asset pipeline
|
63
|
-
config.assets.enabled = true
|
64
|
-
|
65
|
-
# Version of your assets, change this if you want to expire all your assets
|
66
|
-
config.assets.version = '1.0'
|
67
27
|
end
|
68
28
|
end
|
@@ -11,9 +11,6 @@ ConeTest::Application.configure do
|
|
11
11
|
config.serve_static_assets = true
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
13
13
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
14
|
# Show full error reports and disable caching
|
18
15
|
config.consider_all_requests_local = true
|
19
16
|
config.action_controller.perform_caching = false
|
@@ -5,3 +5,4 @@
|
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
7
|
ConeTest::Application.config.secret_token = 'aeff466b623aae06663876a8acc57f8cbfbe226f9c44874d453fbdfd4e57226b53e1a134e472a4314d72b74cf8e6646592cac127180c8a5fc5397027a4b4bd7f'
|
8
|
+
ConeTest::Application.config.secret_key_base = 'f29fd9ad62aecdf0bc0bc68538b382468c9b6d7d30201b8b092f77a98afeed08dce0b5d184ebd61428495534e32cc4d50175f86b69d46378853197b51bb59bd5'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class ConeBootTest < ActiveSupport::TestCase
|
4
4
|
test 'assets cache clear on init' do
|
5
|
-
assert Dir["#{Rails.application.config.assets[:cache_store][1]}*"].empty?
|
5
|
+
assert Dir["#{::Rails.application.config.instance_eval { @assets }[:cache_store][1]}*"].empty?
|
6
6
|
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lihan Li
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-06-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: coffee-rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
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
26
|
version: '0'
|
30
27
|
description:
|
@@ -94,27 +91,26 @@ files:
|
|
94
91
|
- test/vendor/plugins/.gitkeep
|
95
92
|
homepage: http://github.com/lihanli/cone
|
96
93
|
licenses: []
|
94
|
+
metadata: {}
|
97
95
|
post_install_message:
|
98
96
|
rdoc_options: []
|
99
97
|
require_paths:
|
100
98
|
- lib
|
101
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
100
|
requirements:
|
104
|
-
- -
|
101
|
+
- - '>='
|
105
102
|
- !ruby/object:Gem::Version
|
106
103
|
version: '0'
|
107
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
105
|
requirements:
|
110
|
-
- -
|
106
|
+
- - '>='
|
111
107
|
- !ruby/object:Gem::Version
|
112
108
|
version: '0'
|
113
109
|
requirements: []
|
114
110
|
rubyforge_project:
|
115
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.0.0
|
116
112
|
signing_key:
|
117
|
-
specification_version:
|
113
|
+
specification_version: 4
|
118
114
|
summary: Rails client side URL helpers
|
119
115
|
test_files:
|
120
116
|
- test/Gemfile
|