fly_admin 0.0.6 → 0.0.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81507dff368f58ce6b0c649269190d9ac307466f
|
|
4
|
+
data.tar.gz: a7befb1ecb593cdefb53ed8274f8328cda6d0b93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bce4d6a9aac1a951126f04a8cffb573f236dd8c8c3a96d1ef42804fff4d291a76271f35172edb68f16ebd4f4c220b114f97d74ceb640da62d2c2b312965c9539
|
|
7
|
+
data.tar.gz: cce4250ea21f683c80a1f02088362756e9ea8ead202ec0a28e25adb68ad3712277a01cb867a333ff81bc5c2af9ac094f164f60fb9bcf921de36ea764098cd42f
|
|
@@ -7,8 +7,8 @@ module FlyAdmin::Imbs::ApplicationHelper
|
|
|
7
7
|
case FlyAdmin.paysite_type
|
|
8
8
|
when "serials"
|
|
9
9
|
serials_item_link(*args)
|
|
10
|
-
when "
|
|
11
|
-
|
|
10
|
+
when "news"
|
|
11
|
+
news_item_link(*args)
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ module FlyAdmin::Imbs::ApplicationHelper
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def
|
|
23
|
+
def news_item_link(category, article)
|
|
24
24
|
if user_signed_in?
|
|
25
25
|
category_article_path(category, article)
|
|
26
26
|
else
|
data/lib/fly_admin/version.rb
CHANGED
|
@@ -69,19 +69,10 @@ module FlyAdmin
|
|
|
69
69
|
remove_file('lib/connection_api.rb')
|
|
70
70
|
controller_path = "#{Rails.root}/app/controllers/application_controller.rb"
|
|
71
71
|
controller_contents = File.read(controller_path)
|
|
72
|
-
controller_contents.gsub!(/ ConnectionApi/, " FlyAdmin::ConnectionApi")
|
|
72
|
+
controller_contents.gsub!(/ ConnectionApi/, " FlyAdmin::Imbs::ConnectionApi")
|
|
73
73
|
File.open(controller_path, 'w') { |f| f.write(controller_contents) }
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
def replace_subscription_controller
|
|
77
|
-
remove_file('app/controllers/subscriptions_controller.rb')
|
|
78
|
-
routes_path = "#{Rails.root}/config/routes.rb"
|
|
79
|
-
routes_contents = File.read(routes_path)
|
|
80
|
-
routes_contents.gsub!(/"subscriptions#start"/,'"fly_admin/subscriptions#start"')
|
|
81
|
-
routes_contents.gsub!(/"subscriptions#splash"/, '"fly_admin/subscriptions#splash"')
|
|
82
|
-
File.open(routes_path, 'w') { |f| f.write(routes_contents) }
|
|
83
|
-
end
|
|
84
|
-
|
|
85
76
|
private
|
|
86
77
|
def engine_not_mounted?
|
|
87
78
|
File.open("#{Rails.root}/config/routes.rb").each_line do |line|
|
|
@@ -5,5 +5,10 @@ FlyAdmin.api_type = 'imbs'
|
|
|
5
5
|
# Absolute path to Fly Admin
|
|
6
6
|
FlyAdmin.path = Gem.loaded_specs['fly_admin'].full_gem_path
|
|
7
7
|
|
|
8
|
+
# Paysite type: serials, videos, news, etc
|
|
9
|
+
FlyAdmin.paysite_type = 'news'
|
|
10
|
+
|
|
8
11
|
# Enable cache for footers
|
|
9
12
|
SiteCache = FlyAdmin::PageCache.new
|
|
13
|
+
|
|
14
|
+
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fly_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ruslan Korolev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|