fly_admin 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bffa9e90bccfe95f80335440a8393581f198f7ab
4
- data.tar.gz: 34047bfcc870a87ef8835bbd489c45f79a9356ff
3
+ metadata.gz: 81507dff368f58ce6b0c649269190d9ac307466f
4
+ data.tar.gz: a7befb1ecb593cdefb53ed8274f8328cda6d0b93
5
5
  SHA512:
6
- metadata.gz: e8d0341823a13b4ccd32638b0604740aeea63f61d2cbae3ee19751e640300fe6fcf29f1183a17294bc69fd3bca320beee0f4789710fa50ca2b12806104d05835
7
- data.tar.gz: 80e4a167e99617d546d8c7e6a27835c2d31780deb5e152b60317dcb593b0f6a399c5f4b0200d0cab2d5677f37c7563935d6de3536337881a772391adef5b38a9
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 "articles"
11
- articles_item_link(*args)
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 articles_item_link(category, article)
23
+ def news_item_link(category, article)
24
24
  if user_signed_in?
25
25
  category_article_path(category, article)
26
26
  else
@@ -1,3 +1,3 @@
1
1
  module FlyAdmin
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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.6
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-16 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails