netzke-core 1.0.0.0 → 1.0.1.0

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: a30d44ea57bebd319158780498fdb886e9286052
4
- data.tar.gz: 0a0c59a054c5aa70f343dfd91ba15c2484aa7370
3
+ metadata.gz: 5625e5b8c41cdcbe1a42398968f2690302f8a23f
4
+ data.tar.gz: 6a9440742423fca06ffa20e3eb303d2d6265b3e8
5
5
  SHA512:
6
- metadata.gz: 9fb4de64f99e93c3141f33b574c707d756d9d82821b11b81a594135e0eb538398288d378aa556c2c1aab9fe488e4cca62b160b3b6b110759f30db280fa5a726e
7
- data.tar.gz: 0ed2b42ee41182db0a51040d3ab136cf87a1f7ddcbd3d565b22d9d51e8bef66f1a3d160cbcbd40dc28c2ad34f76be20134149bcee77e15361596256690da6fc4
6
+ metadata.gz: a8b1c61d559f9bff94e344741048c30894553013656602a81562664d01571d9e7f124332efa8f30efa944f092a09c0bd3a28ffc8a86242540a3b3f33fe29bdc5
7
+ data.tar.gz: 7570d49b12911111e3c1f17bdb1768f82e9bf7dbcdb57f9d8494a3af125e8e5e4112d6bcd2ecfd5964f29ec26096d5b8e0ed442749728541dd874a3074275c99
@@ -1,3 +1,7 @@
1
+ # v1.0.1.0 - 2016-05-01
2
+
3
+ * New `Netzke::Core.default_routes` config option.
4
+
1
5
  # v1.0.0.0 - 2016-01-04
2
6
 
3
7
  ## New and improved
data/Gemfile CHANGED
@@ -14,8 +14,11 @@ group :test do
14
14
  gem 'selenium-webdriver'
15
15
  end
16
16
 
17
- group :development, :test do
17
+ group :development do
18
18
  gem 'web-console', '~> 2.0'
19
+ end
20
+
21
+ group :development, :test do
19
22
  gem 'pry-rails'
20
23
  gem 'netzke-testing', github: 'netzke/netzke-testing', branch: 'master'
21
24
  end
@@ -1,3 +1,6 @@
1
1
  Rails.application.routes.draw do
2
- netzke unless Rails.application.routes.named_routes.routes[:netzke]
2
+ if Netzke::Core.default_routes &&
3
+ !Rails.application.routes.named_routes.routes[:netzke]
4
+ netzke
5
+ end
3
6
  end
@@ -6,14 +6,21 @@ module Netzke
6
6
  # You can configure Netzke::Core like this:
7
7
  #
8
8
  # Netzke::Core.setup do |config|
9
- # config.ext_path = "/home/netzke/ext-4.1.1"
9
+ # config.ext_path = "/home/netzke/ext-5.0.0"
10
10
  # config.icons_uri = "/images/famfamfam/icons"
11
11
  # # ...
12
12
  # end
13
13
  #
14
14
  # The following configuration options are available:
15
- # * ext_path - absolute path to your Ext code root
16
- # * icons_uri - relative URI to the icons
15
+ # * ext_path - absolute path to your Ext library
16
+ # * ext_uri - relative URI to the Ext library (defaults to "/extjs")
17
+ # * icons_uri - relative URI to the icons (defaults to "/images/icons")
18
+ # * default_routes - whether to include default Netzke routes (defaults to true)
19
+ # * ext_javascripts - extra JS dependencies to be included in the app
20
+ # * ext_stylesheets - extra CSS dependencies to be included in the app
21
+ # * js_direct_max_retries - amount of retries that the direct remoting provider will attempt in case of failure
22
+ # (defaults to 0)
23
+ # * client_notification_delay - amount of time (in ms) feedback delay is being shown (defaults to 2000)
17
24
  module Core
18
25
  autoload :VERSION, 'netzke/core/version'
19
26
  autoload :DslConfigBase, 'netzke/core/dsl_config_base'
@@ -28,10 +35,6 @@ module Netzke
28
35
  autoload :ConfigToDslDelegator, 'netzke/core/config_to_dsl_delegator'
29
36
  autoload :JsonLiteral, 'netzke/core/json_literal'
30
37
 
31
- # :ext (or :touch - when and if ever implemented)
32
- mattr_accessor :platform
33
- @@platform = :ext
34
-
35
38
  mattr_accessor :ext_javascripts
36
39
  @@ext_javascripts = []
37
40
 
@@ -50,16 +53,17 @@ module Netzke
50
53
 
51
54
  mattr_accessor :ext_path
52
55
 
53
- # Amount of retries that the direct remoting provider will attempt in case of failure
54
56
  mattr_accessor :js_direct_max_retries
55
57
  @@js_direct_max_retries = 0
56
58
 
57
- # Amount of time feedback delay is being shown
58
59
  mattr_accessor :client_notification_delay
59
60
  @@client_notification_delay = 2000
60
61
 
61
62
  mattr_accessor :with_icons
62
63
 
64
+ mattr_accessor :default_routes
65
+ @@default_routes = true
66
+
63
67
  def self.setup
64
68
  yield self
65
69
  end
@@ -1,5 +1,5 @@
1
1
  module Netzke
2
2
  module Core
3
- VERSION = "1.0.0.0"
3
+ VERSION = "1.0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netzke-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.0
4
+ version: 1.0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Gorin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2016-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mime-types
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
41
55
  description: Netzke helps you build complex web UI in a modular way
42
56
  email: max@goodbitlabs.com
43
57
  executables: []