secondbureau 0.0.4.3 → 0.0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -3
- data/app/controllers/rails/generators_controller.rb +1 -0
- data/app/controllers/rails/rails_info_controller.rb +1 -2
- data/app/controllers/rails/routes_controller.rb +1 -0
- data/app/controllers/rails/tasks_controller.rb +16 -0
- data/app/views/layouts/rails_info.html.haml +1 -0
- data/app/views/rails/tasks/index.html.haml +13 -0
- data/lib/rails/ext/routes.rb +1 -0
- data/lib/secondbureau/version.rb +1 -1
- metadata +20 -19
- data/.rvmrc +0 -55
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Secondbureau
|
2
2
|
|
3
|
-
|
3
|
+
This is a util gem from Secondbureau
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem 'secondbureau'
|
9
|
+
gem 'secondbureau', '~> 0.0.4.3'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -18,7 +18,13 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
### Rails info
|
22
|
+
|
23
|
+
$ rails g secondbureau:mount_rails_info
|
24
|
+
|
25
|
+
It will add the following line to the `config/routes.rb`:
|
26
|
+
|
27
|
+
mount_rails_info if Rails.env.development?
|
22
28
|
|
23
29
|
## Contributing
|
24
30
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
3
|
+
module Rails
|
4
|
+
class TasksController < RailsInfoController
|
5
|
+
layout 'rails_info'
|
6
|
+
before_filter :require_local!
|
7
|
+
|
8
|
+
def index
|
9
|
+
Rake::TaskManager.record_task_metadata = true
|
10
|
+
Rake.application.clear
|
11
|
+
Rails.application.load_tasks
|
12
|
+
@tasks = Rake.application.tasks
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
data/lib/rails/ext/routes.rb
CHANGED
data/lib/secondbureau/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secondbureau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.
|
4
|
+
version: 0.0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &17827360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *17827360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &17826740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *17826740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: highline
|
38
|
-
requirement: &
|
38
|
+
requirement: &17825700 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *17825700
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: hpricot
|
49
|
-
requirement: &
|
49
|
+
requirement: &17764620 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *17764620
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: ruby_parser
|
60
|
-
requirement: &
|
60
|
+
requirement: &17763080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *17763080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sass-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &17760960 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '3.2'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *17760960
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: bootstrap-sass
|
82
|
-
requirement: &
|
82
|
+
requirement: &17739500 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.2.1.1
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *17739500
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: pry-debugger
|
93
|
-
requirement: &
|
93
|
+
requirement: &17738320 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *17738320
|
102
102
|
description: the secondbureau util gem
|
103
103
|
email:
|
104
104
|
- mark@secondbureau.com
|
@@ -108,7 +108,6 @@ extensions: []
|
|
108
108
|
extra_rdoc_files: []
|
109
109
|
files:
|
110
110
|
- .gitignore
|
111
|
-
- .rvmrc
|
112
111
|
- Gemfile
|
113
112
|
- LICENSE.txt
|
114
113
|
- README.md
|
@@ -118,9 +117,11 @@ files:
|
|
118
117
|
- app/controllers/rails/generators_controller.rb
|
119
118
|
- app/controllers/rails/rails_info_controller.rb
|
120
119
|
- app/controllers/rails/routes_controller.rb
|
120
|
+
- app/controllers/rails/tasks_controller.rb
|
121
121
|
- app/views/layouts/rails_info.html.haml
|
122
122
|
- app/views/rails/generators/index.html.haml
|
123
123
|
- app/views/rails/routes/index.html.haml
|
124
|
+
- app/views/rails/tasks/index.html.haml
|
124
125
|
- bin/secondbureau
|
125
126
|
- config/routes.rb
|
126
127
|
- lib/generators/secondbureau/initialize_generator.rb
|
data/.rvmrc
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
-
# development environment upon cd'ing into the directory
|
5
|
-
|
6
|
-
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
|
7
|
-
environment_id="ruby-1.9.2-p290@secondbureau-gem"
|
8
|
-
|
9
|
-
#
|
10
|
-
# Uncomment following line if you want options to be set only for given project.
|
11
|
-
#
|
12
|
-
# PROJECT_JRUBY_OPTS=( --1.9 )
|
13
|
-
|
14
|
-
#
|
15
|
-
# First we attempt to load the desired environment directly from the environment
|
16
|
-
# file. This is very fast and efficient compared to running through the entire
|
17
|
-
# CLI and selector. If you want feedback on which environment was used then
|
18
|
-
# insert the word 'use' after --create as this triggers verbose mode.
|
19
|
-
#
|
20
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
21
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
22
|
-
then
|
23
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
24
|
-
|
25
|
-
if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
|
26
|
-
then
|
27
|
-
. "${rvm_path:-$HOME/.rvm}/hooks/after_use"
|
28
|
-
fi
|
29
|
-
else
|
30
|
-
# If the environment file has not yet been created, use the RVM CLI to select.
|
31
|
-
if ! rvm --create use "$environment_id"
|
32
|
-
then
|
33
|
-
echo "Failed to create RVM environment '${environment_id}'."
|
34
|
-
exit 1
|
35
|
-
fi
|
36
|
-
fi
|
37
|
-
|
38
|
-
#
|
39
|
-
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
|
40
|
-
# it be automatically loaded. Uncomment the following and adjust the filename if
|
41
|
-
# necessary.
|
42
|
-
#
|
43
|
-
# filename=".gems"
|
44
|
-
# if [[ -s "$filename" ]]
|
45
|
-
# then
|
46
|
-
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
|
47
|
-
# fi
|
48
|
-
|
49
|
-
# If you use bundler, this might be useful to you:
|
50
|
-
# if command -v bundle && [[ -s Gemfile ]]
|
51
|
-
# then
|
52
|
-
# bundle install
|
53
|
-
# fi
|
54
|
-
|
55
|
-
|