shopqi-app 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/app/controllers/shopqi_app/application_controller.rb +1 -1
- data/app/controllers/shopqi_app/sessions_controller.rb +2 -1
- data/app/helpers/shopqi_app/application_helper.rb +2 -2
- data/config/routes.rb +1 -1
- data/lib/generators/shopqi_app/shopqi_app_generator.rb +3 -2
- data/lib/generators/shopqi_app/templates/README +8 -0
- data/lib/generators/shopqi_app/templates/app/controllers/application_controller.rb +0 -2
- data/lib/shopqi-app.rb +1 -1
- data/lib/shopqi_app/engine.rb +9 -3
- data/lib/shopqi_app/helpers.rb +3 -3
- data/lib/shopqi_app/version.rb +2 -2
- metadata +6 -6
data/Rakefile
CHANGED
data/config/routes.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
class
|
1
|
+
class ShopQiAppGenerator < Rails::Generators::Base
|
2
|
+
namespace 'shopqi_app'
|
2
3
|
source_root File.expand_path('../templates', __FILE__)
|
3
4
|
|
4
5
|
argument :client_id , type: :string, required: true
|
@@ -17,7 +18,7 @@ class ShopqiAppGenerator < Rails::Generators::Base
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def add_routes
|
20
|
-
route "mount
|
21
|
+
route "mount ShopQiApp::Engine => '/app'"
|
21
22
|
route "root :to => 'home#index'"
|
22
23
|
end
|
23
24
|
|
@@ -7,6 +7,14 @@ If you DO NOT use database, you MUST comment the line below in config/applicatio
|
|
7
7
|
# require "active_record/railtie"
|
8
8
|
|
9
9
|
Step 1.
|
10
|
+
UNCOMMENT the line below in Gemfile
|
11
|
+
gem 'therubyracer', :platforms => :ruby
|
12
|
+
|
13
|
+
Step 2.
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
|
17
|
+
Step 3.
|
10
18
|
$ rails server
|
11
19
|
|
12
20
|
===============================================================================
|
data/lib/shopqi-app.rb
CHANGED
data/lib/shopqi_app/engine.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
module
|
1
|
+
module ShopQiApp
|
2
2
|
class Engine < Rails::Engine
|
3
|
-
isolate_namespace
|
3
|
+
isolate_namespace ShopQiApp
|
4
|
+
engine_name 'shopqi_app'
|
4
5
|
|
5
6
|
config.generators do |g|
|
6
7
|
g.template_engine :haml
|
@@ -8,10 +9,15 @@ module ShopqiApp
|
|
8
9
|
g.integration_tool :rspec
|
9
10
|
end
|
10
11
|
|
12
|
+
initializer "shopqi_app.acronym" do
|
13
|
+
ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
inflect.acronym 'ShopQi'
|
15
|
+
end
|
16
|
+
end
|
11
17
|
|
12
18
|
initializer "shopqi_app.helpers" do
|
13
19
|
ActiveSupport.on_load(:action_controller) do
|
14
|
-
include
|
20
|
+
include ShopQiApp::Helpers
|
15
21
|
end
|
16
22
|
end
|
17
23
|
end
|
data/lib/shopqi_app/helpers.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
module
|
1
|
+
module ShopQiApp
|
2
2
|
module Helpers
|
3
3
|
def self.included(base)
|
4
|
-
base.send :helper,
|
5
|
-
base.send :include,
|
4
|
+
base.send :helper, ShopQiApp::ApplicationHelper
|
5
|
+
base.send :include, ShopQiApp::ApplicationHelper
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/shopqi_app/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.
|
1
|
+
module ShopQiApp
|
2
|
+
VERSION = "0.2.1"
|
3
3
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopqi-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.2.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.
|
29
|
+
version: 3.2.6
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: omniauth-shopqi
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
segments:
|
188
188
|
- 0
|
189
|
-
hash:
|
189
|
+
hash: 62860785
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
none: false
|
192
192
|
requirements:
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
hash:
|
198
|
+
hash: 62860785
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
201
|
rubygems_version: 1.8.24
|