netzke-core 0.9.0 → 0.10.0.rc1

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: 3249a1b7bc59b32f5437299a6238d579a51d6f07
4
- data.tar.gz: 30539d08f8c08ec64a9a8f0d664fbd323150c47d
3
+ metadata.gz: 5c6c48d6a91a03cba633557d57832a22a7b82ca9
4
+ data.tar.gz: d03b759173db9b68cf60ef8c1c940f0c9b625817
5
5
  SHA512:
6
- metadata.gz: 49850df9ba02b6363c8b066254dd463a73e2502d5586b5b3c3fa9fd4705093387677e1524bdd6dd0236c1f1e6281c9d3a57860b7b031b10b6ba0a6daa302ff8f
7
- data.tar.gz: 944e0c00f7cc2da75ee4836b5010934a1eb916da91b0f39002eb9c8823d95d0941ae61eca4c63bb26b7c96a2c9b430e4f32b3de8829ee88d8e5f04d0cad13258
6
+ metadata.gz: 3bd9b832b5e79e4ab4c00431fc5c042d93bd5140834fdcc2b44c952f021070d13ec589d02efea8f78084516a82662201df3dfcb770faf688fe40d5de076f60cf
7
+ data.tar.gz: 047e6ca50a2aaf9bd81c81fe8cc453c226b63454394fb1b74c6d3ecd726b4e88bd5b656307e9fc57d0317e0a407b2364de7bc5fcd5645835df7391c1bdfa3bb8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # v0.9.0 - WIP
2
2
  * Fix icon detection
3
- * Introduce `Base#validate_config` that can be overridden to validate a component's configuration
4
3
 
5
4
  # v0.9.0.rc1 - 2013-12-01
6
5
  * Rails 4
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ gem 'netzke-testing'
6
+
5
7
  # For local development
6
8
  # gem 'netzke_testing', path: '~/code/netzke/netzke_testing'
7
9
 
@@ -11,5 +13,4 @@ group :test do
11
13
  gem 'database_cleaner'
12
14
  gem 'rspec-rails'
13
15
  gem 'pry-rails'
14
- gem 'netzke-testing', '~>0.10.0'
15
16
  end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Netzke Core [![Gem Version](https://fury-badge.herokuapp.com/rb/netzke-core.png)](http://badge.fury.io/rb/netzke-core) [![Build Status](https://travis-ci.org/netzke/netzke-core.png?branch=0-9)](https://travis-ci.org/netzke/netzke-core) [![Code Climate](https://codeclimate.com/github/netzke/netzke-core.png)](https://codeclimate.com/github/netzke/netzke-core)
1
+ # Netzke Core [![Gem Version](https://fury-badge.herokuapp.com/rb/netzke-core.png)](http://badge.fury.io/rb/netzke-core) [![Build Status](https://travis-ci.org/netzke/netzke-core.png?branch=master)](https://travis-ci.org/netzke/netzke-core) [![Code Climate](https://codeclimate.com/github/netzke/netzke-core.png)](https://codeclimate.com/github/netzke/netzke-core)
2
2
 
3
3
  [RDocs](http://rdoc.info/projects/netzke/netzke-core)
4
4
 
@@ -325,8 +325,8 @@ Netzke provides support for HAML templates in case you don't want to put HTML in
325
325
 
326
326
  ## Requirements
327
327
 
328
- * Ruby >= 1.9.3
329
- * Rails ~> 3.2.0
328
+ * Ruby ~> 1.9.2
329
+ * Rails ~> 4.0.0
330
330
  * Ext JS ~> 4.2.0
331
331
 
332
332
  ## Installation
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Dir[File.join(File.dirname(__FILE__), './lib/tasks/*.rake')].each { |file| load
8
8
  Dir[File.join(File.dirname(__FILE__), 'tasks/*.rake')].each { |file| load file }
9
9
 
10
10
  YARD::Rake::YardocTask.new do |t|
11
- t.options = ['--title', "Netzke Core #{Netzke::Core::VERSION}"]
11
+ t.options = ['--title', "Netzke Core #{Netzke::Core::Version::STRING}"]
12
12
  end
13
13
 
14
14
  namespace :yard do
data/lib/netzke/base.rb CHANGED
@@ -141,9 +141,6 @@ module Netzke
141
141
 
142
142
  # Build complete component configuration
143
143
  configure(config)
144
-
145
- # Check whether the config is valid
146
- validate_config(config)
147
144
  end
148
145
 
149
146
  def i18n_id
@@ -61,15 +61,6 @@ module Netzke::Core
61
61
 
62
62
  protected
63
63
 
64
- # Override to validate configuration and raise eventual exceptions
65
- # E.g.:
66
- #
67
- # def validate_config(c)
68
- # raise ArgumentError, "Grid requires a model" if c.model.nil?
69
- # end
70
- def validate_config(c)
71
- end
72
-
73
64
  # During the normalization of config object, +extend_item+ is being called with each item found (recursively) in there.
74
65
  # For example, symbols representing nested child components get replaced with a proper config hash, same goes for actions (see +Composition+ and +Actions+ respectively).
75
66
  # Override to do any additional checks/enhancements. See, for example, +Netzke::Basepack::WrapLazyLoaded+ or +Netzke::Basepack::Fields+.
@@ -9,7 +9,12 @@ module Netzke
9
9
  # before loading initializers
10
10
  config.before_initialize do |app|
11
11
  Netzke::Core.ext_path = Rails.root.join('public', Netzke::Core.ext_uri[1..-1])
12
- Netzke::Core.with_icons = File.exists?("#{::Rails.root}/public#{Netzke::Core.icons_uri}") if Netzke::Core.with_icons.nil?
12
+ end
13
+
14
+ config.after_initialize do |app|
15
+ if Netzke::Core.with_icons.nil?
16
+ Netzke::Core.with_icons = File.exists?("#{::Rails.root}/public#{Netzke::Core.icons_uri}")
17
+ end
13
18
  end
14
19
  end
15
20
  end
@@ -1,5 +1,12 @@
1
1
  module Netzke
2
2
  module Core
3
- VERSION = "0.9.0"
3
+ module Version
4
+ MAJOR = 0
5
+ MINOR = 10
6
+ PATCH = 0
7
+ PRE = 'rc1'
8
+
9
+ STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
10
+ end
4
11
  end
5
12
  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: 0.9.0
4
+ version: 0.10.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Gorin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-08 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 3.2.0
61
+ version: 4.0.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 3.2.0
68
+ version: 4.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement