dragoon_system 0.1.4 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,6 @@
1
1
  = dragoon_system
2
2
 
3
- Description goes here.
4
-
5
- == Contributing to dragoon_system
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
3
+ You can see test suit in induction_cannon_01
14
4
 
15
5
  == Copyright
16
6
 
data/Rakefile CHANGED
@@ -15,8 +15,8 @@ Jeweler::Tasks.new do |gem|
15
15
  gem.name = "dragoon_system"
16
16
  gem.homepage = "http://github.com/toward7seas01/dragoon_system"
17
17
  gem.license = "MIT"
18
- gem.summary = %Q{personal suit}
19
- gem.description = %Q{personal suit}
18
+ gem.summary = %Q{personal suit, you can see test suit in induction_cannon_01}
19
+ gem.description = %Q{personal suit, you can see test suit in induction_cannon_01}
20
20
  gem.email = "toward7seas@gmail.com"
21
21
  gem.authors = ["zhanyinan"]
22
22
  # Include your dependencies below. Runtime dependencies are required when using your gem,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.7
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dragoon_system}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["zhanyinan"]
12
- s.date = %q{2011-03-04}
13
- s.description = %q{personal suit}
12
+ s.date = %q{2011-03-07}
13
+ s.description = %q{personal suit, you can see test suit in induction_cannon_01}
14
14
  s.email = %q{toward7seas@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
@@ -29,16 +29,18 @@ Gem::Specification.new do |s|
29
29
  "dragoon_system.gemspec",
30
30
  "lib/action_controller/base_patch.rb",
31
31
  "lib/active_record/base_patch.rb",
32
+ "lib/application_helper_patch.rb",
32
33
  "lib/dragoon_system.rb",
33
34
  "lib/generators/dragoon_system/install_generator.rb",
34
- "lib/module_patch.rb",
35
+ "lib/generators/templates/application.js",
36
+ "lib/object_patch.rb",
35
37
  "lib/string_patch.rb"
36
38
  ]
37
39
  s.homepage = %q{http://github.com/toward7seas01/dragoon_system}
38
40
  s.licenses = ["MIT"]
39
41
  s.require_paths = ["lib"]
40
42
  s.rubygems_version = %q{1.5.2}
41
- s.summary = %q{personal suit}
43
+ s.summary = %q{personal suit, you can see test suit in induction_cannon_01}
42
44
 
43
45
  if s.respond_to? :specification_version then
44
46
  s.specification_version = 3
@@ -51,7 +51,7 @@ module ActionController
51
51
  end
52
52
  end
53
53
  else
54
- raise l("lack_necessary_method")
54
+ raise t("dragoon_system.lack_necessary_method")
55
55
  end
56
56
  end
57
57
 
@@ -0,0 +1,30 @@
1
+ module ApplicationHelper
2
+ def js(*file_name)
3
+ content_for :head do
4
+ javascript_include_tag(*file_name)
5
+ end
6
+ end
7
+
8
+ def css(*file_name)
9
+ content_for :head do
10
+ stylesheet_link_tag(*file_name)
11
+ end
12
+ end
13
+
14
+ def render_form
15
+ render :partial => "form"
16
+ end
17
+
18
+ def for_select(name, data, style = {})
19
+ select_tag(name.to_s, options_for_select(data.merge({""=>""}), params[name] || ""), style)
20
+ end
21
+
22
+ def select_all_check_box
23
+ check_box_tag "select-all"
24
+ end
25
+
26
+ def check_box_belongs_select_all(model, *additional_classes)
27
+ klass = (["select_all"] + additional_classes).join(" ")
28
+ check_box_tag "ids[]", model.id, false, :class => klass
29
+ end
30
+ end
@@ -10,6 +10,10 @@ module DragoonSystem
10
10
  copy_file "../../../config/locales/zh-CN.yml", "config/locales/dragoon_system.zh-CN.yml"
11
11
  end
12
12
 
13
+ def copy_js
14
+ template "application.js", "public/javascripts/application.js"
15
+ end
16
+
13
17
  end
14
18
  end
15
19
  end
@@ -0,0 +1,24 @@
1
+ $(function(){
2
+ setup_checkbox_for_selct_all()
3
+ })
4
+
5
+
6
+ function setup_checkbox_for_selct_all(){
7
+ var trigger = $("input[name=select-all]")
8
+ trigger.live("click", function(){
9
+ var checked_status = this.checked;
10
+ trigger.each(function(){
11
+ this.checked = checked_status
12
+ })
13
+ $("input.select_all").each(function(){
14
+ this.checked = checked_status;
15
+ });
16
+ });
17
+ }
18
+
19
+ function mark_current(target, collection){
20
+ $(target).addClass('current')
21
+ $(collection).not(target).removeClass('current')
22
+ }
23
+
24
+
@@ -1,4 +1,4 @@
1
- class Module
1
+ class Object
2
2
  def ah(*data)
3
3
  ActiveSupport::OrderedHash.[](*data)
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragoon_system
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - zhanyinan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-04 00:00:00 +08:00
18
+ date: 2011-03-07 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -94,7 +94,7 @@ dependencies:
94
94
  prerelease: false
95
95
  type: :development
96
96
  requirement: *id005
97
- description: personal suit
97
+ description: personal suit, you can see test suit in induction_cannon_01
98
98
  email: toward7seas@gmail.com
99
99
  executables: []
100
100
 
@@ -116,9 +116,11 @@ files:
116
116
  - dragoon_system.gemspec
117
117
  - lib/action_controller/base_patch.rb
118
118
  - lib/active_record/base_patch.rb
119
+ - lib/application_helper_patch.rb
119
120
  - lib/dragoon_system.rb
120
121
  - lib/generators/dragoon_system/install_generator.rb
121
- - lib/module_patch.rb
122
+ - lib/generators/templates/application.js
123
+ - lib/object_patch.rb
122
124
  - lib/string_patch.rb
123
125
  has_rdoc: true
124
126
  homepage: http://github.com/toward7seas01/dragoon_system
@@ -153,6 +155,6 @@ rubyforge_project:
153
155
  rubygems_version: 1.5.2
154
156
  signing_key:
155
157
  specification_version: 3
156
- summary: personal suit
158
+ summary: personal suit, you can see test suit in induction_cannon_01
157
159
  test_files: []
158
160