crystal_ext 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,12 +1,9 @@
1
1
  require 'rake_ext'
2
2
 
3
- gem_spec(
3
+ project(
4
4
  :name => "crystal_ext",
5
- :version => "0.0.5",
5
+ :version => "0.0.7",
6
6
  :summary => "Extensions for Crystal Framework",
7
- :dependencies => %w(
8
- crystal
9
- ),
10
7
 
11
8
  :author => "Alexey Petrushin",
12
9
  :homepage => "http://github.com/alexeypetrushin/crystal_ext"
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  module Crystal
2
4
  JavascriptHelper.class_eval do
3
5
 
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  # enshure domain has no www. except if there's custom subdomain
2
4
  module Crystal
3
5
  # class UrlWithWww < StandardError
@@ -0,0 +1,2 @@
1
+ # gem 'crystal'
2
+ gem 'i18n', '0.4.1'
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  # Hack, ActiveSupport currently uses differrent version
2
4
  # gem 'i18n', '>= 0.4.1'
3
5
  # require 'i18n'
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  module Crystal
2
4
  @plugin_initializers = {}
3
5
  class << self
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  Crystal::AbstractController::ClassMethods.class_eval do
2
4
  def prepare_model aclass, opt = {}
3
5
  id = opt.delete(:id) || :id
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  #
2
4
  # Processor
3
5
  #
@@ -1,3 +1,5 @@
1
+ require 'crystal_ext/gems'
2
+
1
3
  class UserError < StandardError
2
4
  end
3
5
 
@@ -1,5 +1,4 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/helper"
1
+ require "spec_helper"
3
2
 
4
3
  require 'crystal/profiles/web_require'
5
4
 
@@ -1,5 +1,4 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/with_controller_ext"
1
+ require "controller_spec_helper"
3
2
 
4
3
  require 'crystal/html'
5
4
  require 'crystal_ext/defer_js'
data/spec/i18n_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/helper"
1
+ require "spec_helper"
3
2
 
4
3
  require 'crystal/support' # to check that i18n will correctly works with ActiveSupport
5
4
  require 'crystal_ext/i18n'
@@ -1,5 +1,4 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/with_controller_ext"
1
+ require "controller_spec_helper"
3
2
 
4
3
  require 'crystal_ext/prepare_model'
5
4
 
@@ -1,5 +1,4 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/helper"
1
+ require "spec_helper"
3
2
 
4
3
  require 'crystal/profiles/web_require'
5
4
  require 'crystal_ext/protect_from_forgery'
@@ -0,0 +1,4 @@
1
+ require 'rspec_ext'
2
+
3
+ lib_dir = "#{__FILE__.parent_dirname}/lib"
4
+ $LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir
@@ -1,8 +1,6 @@
1
- require 'rspec_ext'
2
- require "#{__FILE__.dirname}/with_controller_ext"
1
+ require "controller_spec_helper"
3
2
 
4
3
  require 'crystal_ext/user_error'
5
- require 'with_controller_ext'
6
4
 
7
5
  describe "User Error" do
8
6
  with_environment :test
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystal_ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexey Petrushin
@@ -15,21 +15,23 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-13 00:00:00 +04:00
18
+ date: 2010-10-15 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: crystal
22
+ name: i18n
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 13
30
30
  segments:
31
31
  - 0
32
- version: "0"
32
+ - 4
33
+ - 1
34
+ version: 0.4.1
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
37
  description:
@@ -45,6 +47,7 @@ files:
45
47
  - readme.md
46
48
  - lib/crystal_ext/defer_js.rb
47
49
  - lib/crystal_ext/ensure_no_www.rb
50
+ - lib/crystal_ext/gems.rb
48
51
  - lib/crystal_ext/i18n/locales/ru/pluralization.rb
49
52
  - lib/crystal_ext/i18n.rb
50
53
  - lib/crystal_ext/plugin/app.rb
@@ -55,15 +58,15 @@ files:
55
58
  - lib/crystal_ext/profiles/web_ext_require.rb
56
59
  - lib/crystal_ext/protect_from_forgery.rb
57
60
  - lib/crystal_ext/user_error.rb
61
+ - spec/controller_spec_helper.rb
58
62
  - spec/defer_js_spec.rb
59
- - spec/helper.rb
60
63
  - spec/i18n_spec/locales/en/general.yml
61
64
  - spec/i18n_spec/locales/ru/general.yml
62
65
  - spec/i18n_spec.rb
63
66
  - spec/prepare_model_spec.rb
64
67
  - spec/protect_from_forgery_spec.rb
68
+ - spec/spec_helper.rb
65
69
  - spec/user_error_spec.rb
66
- - spec/with_controller_ext.rb
67
70
  has_rdoc: true
68
71
  homepage: http://github.com/alexeypetrushin/crystal_ext
69
72
  licenses: []
data/spec/helper.rb DELETED
@@ -1,2 +0,0 @@
1
- lib_dir = "#{__FILE__.parent_dirname}/lib"
2
- $LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir