crystal_ext 0.0.4 → 0.0.5
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.
- data/Rakefile +11 -64
- data/lib/crystal_ext/plugin/web.rb +1 -1
- data/spec/defer_js_spec.rb +3 -1
- data/spec/helper.rb +2 -5
- data/spec/i18n_spec.rb +3 -1
- data/spec/prepare_model_spec.rb +3 -1
- data/spec/protect_from_forgery_spec.rb +2 -1
- data/spec/user_error_spec.rb +4 -2
- data/spec/{controller_helper.rb → with_controller_ext.rb} +3 -2
- metadata +6 -7
- data/spec/spec.opts +0 -4
data/Rakefile
CHANGED
@@ -1,66 +1,13 @@
|
|
1
|
-
require '
|
2
|
-
require 'fileutils'
|
3
|
-
current_dir = File.expand_path(File.dirname(__FILE__))
|
4
|
-
Dir.chdir current_dir
|
1
|
+
require 'rake_ext'
|
5
2
|
|
6
|
-
|
7
|
-
#
|
8
|
-
# Specs
|
9
|
-
#
|
10
|
-
require 'spec/rake/spectask'
|
11
|
-
|
12
|
-
task :default => :spec
|
13
|
-
|
14
|
-
Spec::Rake::SpecTask.new('spec') do |t|
|
15
|
-
t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/}
|
16
|
-
t.libs = ["#{current_dir}/lib"]
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
#
|
21
|
-
# Gem
|
22
|
-
#
|
23
|
-
require 'rake/clean'
|
24
|
-
require 'rake/gempackagetask'
|
25
|
-
|
26
|
-
gem_options = {
|
3
|
+
gem_spec(
|
27
4
|
:name => "crystal_ext",
|
28
|
-
:version => "0.0.
|
29
|
-
:summary => "Extensions for
|
30
|
-
:dependencies => %w(
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
s.name = gem_name
|
39
|
-
s.author = "Alexey Petrushin"
|
40
|
-
s.homepage = "http://github.com/alexeypetrushin/#{gem_options[:name]}"
|
41
|
-
s.require_path = "lib"
|
42
|
-
s.files = (%w{Rakefile readme.md} + Dir.glob("{lib,spec}/**/*"))
|
43
|
-
|
44
|
-
s.platform = Gem::Platform::RUBY
|
45
|
-
s.has_rdoc = true
|
46
|
-
end
|
47
|
-
|
48
|
-
package_dir = "#{current_dir}/build"
|
49
|
-
Rake::GemPackageTask.new(spec) do |p|
|
50
|
-
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
51
|
-
p.need_zip = true
|
52
|
-
p.package_dir = package_dir
|
53
|
-
end
|
54
|
-
|
55
|
-
task :push do
|
56
|
-
# dir = Dir.chdir package_dir do
|
57
|
-
gem_file = Dir.glob("#{package_dir}/#{gem_name}*.gem").first
|
58
|
-
system "gem push #{gem_file}"
|
59
|
-
# end
|
60
|
-
end
|
61
|
-
|
62
|
-
task :clean do
|
63
|
-
system "rm -r #{package_dir}"
|
64
|
-
end
|
65
|
-
|
66
|
-
task :release => [:gem, :push, :clean]
|
5
|
+
:version => "0.0.5",
|
6
|
+
:summary => "Extensions for Crystal Framework",
|
7
|
+
:dependencies => %w(
|
8
|
+
crystal
|
9
|
+
),
|
10
|
+
|
11
|
+
:author => "Alexey Petrushin",
|
12
|
+
:homepage => "http://github.com/alexeypetrushin/crystal_ext"
|
13
|
+
)
|
data/spec/defer_js_spec.rb
CHANGED
data/spec/helper.rb
CHANGED
@@ -1,5 +1,2 @@
|
|
1
|
-
|
2
|
-
lib_dir
|
3
|
-
$LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir
|
4
|
-
|
5
|
-
require 'spec_ext'
|
1
|
+
lib_dir = "#{__FILE__.parent_dirname}/lib"
|
2
|
+
$LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir
|
data/spec/i18n_spec.rb
CHANGED
data/spec/prepare_model_spec.rb
CHANGED
data/spec/user_error_spec.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require 'rspec_ext'
|
2
|
+
require "#{__FILE__.dirname}/with_controller_ext"
|
3
|
+
|
2
4
|
require 'crystal_ext/user_error'
|
3
|
-
require '
|
5
|
+
require 'with_controller_ext'
|
4
6
|
|
5
7
|
describe "User Error" do
|
6
8
|
with_environment :test
|
@@ -1,10 +1,11 @@
|
|
1
|
-
require
|
1
|
+
require 'rspec_ext'
|
2
|
+
require "#{__FILE__.dirname}/helper"
|
2
3
|
|
3
4
|
require 'crystal/profiles/web_require'
|
4
5
|
|
5
6
|
require 'crystal/spec'
|
6
7
|
|
7
|
-
|
8
|
+
RSpec::Core::ExampleGroup.class_eval do
|
8
9
|
def self.with_controller_ext_spec
|
9
10
|
before :all do
|
10
11
|
crystal.after :environment do
|
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Petrushin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-13 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -55,7 +55,6 @@ files:
|
|
55
55
|
- lib/crystal_ext/profiles/web_ext_require.rb
|
56
56
|
- lib/crystal_ext/protect_from_forgery.rb
|
57
57
|
- lib/crystal_ext/user_error.rb
|
58
|
-
- spec/controller_helper.rb
|
59
58
|
- spec/defer_js_spec.rb
|
60
59
|
- spec/helper.rb
|
61
60
|
- spec/i18n_spec/locales/en/general.yml
|
@@ -63,8 +62,8 @@ files:
|
|
63
62
|
- spec/i18n_spec.rb
|
64
63
|
- spec/prepare_model_spec.rb
|
65
64
|
- spec/protect_from_forgery_spec.rb
|
66
|
-
- spec/spec.opts
|
67
65
|
- spec/user_error_spec.rb
|
66
|
+
- spec/with_controller_ext.rb
|
68
67
|
has_rdoc: true
|
69
68
|
homepage: http://github.com/alexeypetrushin/crystal_ext
|
70
69
|
licenses: []
|
@@ -98,6 +97,6 @@ rubyforge_project:
|
|
98
97
|
rubygems_version: 1.3.7
|
99
98
|
signing_key:
|
100
99
|
specification_version: 3
|
101
|
-
summary: Extensions for
|
100
|
+
summary: Extensions for Crystal Framework
|
102
101
|
test_files: []
|
103
102
|
|
data/spec/spec.opts
DELETED