secondbureau 0.0.1

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/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.swp
19
+ *.swo
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://ruby.taobao.org/'
2
+
3
+ # Specify your gem's dependencies in secondbureau.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Li Zhe
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Secondbureau
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'secondbureau'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install secondbureau
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/secondbureau ADDED
@@ -0,0 +1,3 @@
1
+ #! /usr/env ruby
2
+
3
+ puts "this is secondbureau"
@@ -0,0 +1,9 @@
1
+ module Secondbureau
2
+ class InitializeGenerator < Rails::Generators::Base
3
+
4
+ def create_secondbureau_initializer
5
+ create_file "config/initializers/secondbureau.rb", "# from secondbureau"
6
+ end
7
+
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ require "secondbureau/version"
2
+
3
+ module Secondbureau
4
+ end
5
+
6
+ require "secondbureau/engine"
@@ -0,0 +1,7 @@
1
+ require "rails"
2
+
3
+ module Secondbureau
4
+ class Engine < Rails::Engine
5
+
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Secondbureau
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ namespace :secondbureau do
2
+ desc "the secondbureau copy files task"
3
+ task :copy_files do
4
+ puts "it's done"
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ require "pry"
2
+
3
+ namespace :secondbureau do
4
+ desc "change erb to haml"
5
+ task :erb_to_haml do
6
+ current_folder = Rake.application.original_dir
7
+ Dir.glob('app/views/**/*.erb').each do |item|
8
+ puts "generate #{current_folder}/#{item[0..-4]}haml"
9
+ system "html2haml #{current_folder}/#{item} #{current_folder}/#{item[0..-4]}haml"
10
+ system "rm #{current_folder}/#{item}"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'secondbureau/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "secondbureau"
8
+ gem.version = Secondbureau::VERSION
9
+ gem.authors = ["Li Zhe"]
10
+ gem.email = ["mark@secondbureau.com"]
11
+ gem.description = %q{the secondbureau util gem}
12
+ gem.summary = %q{the secondbureau util gem}
13
+ gem.homepage = "http://www.secondbureau.com"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+
20
+ gem.add_dependency "rails"
21
+ gem.add_dependency "highline"
22
+ gem.add_dependency "hpricot"
23
+ gem.add_dependency "ruby_parser"
24
+
25
+ gem.add_development_dependency "pry-nav"
26
+ end
data/spec/gem_spec.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "secondbureau"
2
+
3
+ describe "secondbureau" do
4
+ it "should successfull" do
5
+ Secondbureau::Engine.is_a?(Class).should be_true
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: secondbureau
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Li Zhe
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &17711660 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *17711660
25
+ - !ruby/object:Gem::Dependency
26
+ name: highline
27
+ requirement: &17711240 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *17711240
36
+ - !ruby/object:Gem::Dependency
37
+ name: hpricot
38
+ requirement: &17710820 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *17710820
47
+ - !ruby/object:Gem::Dependency
48
+ name: ruby_parser
49
+ requirement: &17710340 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *17710340
58
+ - !ruby/object:Gem::Dependency
59
+ name: pry-nav
60
+ requirement: &17709900 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *17709900
69
+ description: the secondbureau util gem
70
+ email:
71
+ - mark@secondbureau.com
72
+ executables:
73
+ - secondbureau
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - .gitignore
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - bin/secondbureau
83
+ - lib/generators/secondbureau/initialize_generator.rb
84
+ - lib/secondbureau.rb
85
+ - lib/secondbureau/engine.rb
86
+ - lib/secondbureau/version.rb
87
+ - lib/tasks/files.rake
88
+ - lib/tasks/views.rake
89
+ - secondbureau.gemspec
90
+ - spec/gem_spec.rb
91
+ homepage: http://www.secondbureau.com
92
+ licenses: []
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 1.8.10
112
+ signing_key:
113
+ specification_version: 3
114
+ summary: the secondbureau util gem
115
+ test_files:
116
+ - spec/gem_spec.rb