glimpse-svn 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
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
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 1.0
2
+
3
+ * Initial release
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in glimpse-svn.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # jquery-rails is used by the dummy application
9
+ gem "jquery-rails"
10
+
11
+ # Declare any dependencies that are still in development here instead of in
12
+ # your gemspec. These might include edge Rails or gems from your path or
13
+ # Git. Remember to move these dependencies to your gemspec before releasing
14
+ # your gem to rubygems.org.
15
+
16
+ # To use debugger
17
+ # gem 'debugger'
data/Gemfile.lock ADDED
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ glimpse-svn (1.0.0)
5
+ glimpse
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.12)
11
+ actionpack (= 3.2.12)
12
+ mail (~> 2.4.4)
13
+ actionpack (3.2.12)
14
+ activemodel (= 3.2.12)
15
+ activesupport (= 3.2.12)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.12)
24
+ activesupport (= 3.2.12)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.12)
27
+ activemodel (= 3.2.12)
28
+ activesupport (= 3.2.12)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.12)
32
+ activemodel (= 3.2.12)
33
+ activesupport (= 3.2.12)
34
+ activesupport (3.2.12)
35
+ i18n (~> 0.6)
36
+ multi_json (~> 1.0)
37
+ arel (3.0.2)
38
+ builder (3.0.4)
39
+ erubis (2.7.0)
40
+ glimpse (0.0.4)
41
+ rails (>= 3)
42
+ hike (1.2.1)
43
+ i18n (0.6.4)
44
+ journey (1.0.4)
45
+ jquery-rails (2.2.1)
46
+ railties (>= 3.0, < 5.0)
47
+ thor (>= 0.14, < 2.0)
48
+ json (1.7.7)
49
+ mail (2.4.4)
50
+ i18n (>= 0.4.0)
51
+ mime-types (~> 1.16)
52
+ treetop (~> 1.4.8)
53
+ mime-types (1.21)
54
+ multi_json (1.7.0)
55
+ polyglot (0.3.3)
56
+ rack (1.4.5)
57
+ rack-cache (1.2)
58
+ rack (>= 0.4)
59
+ rack-ssl (1.3.3)
60
+ rack
61
+ rack-test (0.6.2)
62
+ rack (>= 1.0)
63
+ rails (3.2.12)
64
+ actionmailer (= 3.2.12)
65
+ actionpack (= 3.2.12)
66
+ activerecord (= 3.2.12)
67
+ activeresource (= 3.2.12)
68
+ activesupport (= 3.2.12)
69
+ bundler (~> 1.0)
70
+ railties (= 3.2.12)
71
+ railties (3.2.12)
72
+ actionpack (= 3.2.12)
73
+ activesupport (= 3.2.12)
74
+ rack-ssl (~> 1.3.2)
75
+ rake (>= 0.8.7)
76
+ rdoc (~> 3.4)
77
+ thor (>= 0.14.6, < 2.0)
78
+ rake (10.0.3)
79
+ rdoc (3.12.2)
80
+ json (~> 1.4)
81
+ sprockets (2.2.2)
82
+ hike (~> 1.2)
83
+ multi_json (~> 1.0)
84
+ rack (~> 1.0)
85
+ tilt (~> 1.1, != 1.3.0)
86
+ thor (0.17.0)
87
+ tilt (1.3.6)
88
+ treetop (1.4.12)
89
+ polyglot
90
+ polyglot (>= 0.3.1)
91
+ tzinfo (0.3.37)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ glimpse-svn!
98
+ jquery-rails
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013 Neil Cowburn
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Glimpse::Svn
2
+
3
+ Provide a glimpse into the Subversion info of your Rails application.
4
+
5
+ Things this glimpse view provides:
6
+
7
+ - View the current revision of your Subversion repo
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ gem 'glimpse-svn'
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install glimpse-svn
22
+
23
+ ## Usage
24
+
25
+ Add the following to your `config/initializers/glimpse.rb`:
26
+
27
+ ```ruby
28
+ Glimpse.into Glimpse::Views::Svn
29
+ ```
30
+
31
+ ## Contributing
32
+
33
+ 1. Fork it
34
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
35
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
36
+ 4. Push to the branch (`git push origin my-new-feature`)
37
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ <div class="rev">
2
+ <%= view.rev_number %>
3
+ </div>
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'glimpse-svn/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = 'glimpse-svn'
8
+ gem.version = Glimpse::Svn::VERSION
9
+ gem.authors = ['Neil Cowburn']
10
+ gem.email = ['neilco@gmail.com']
11
+ gem.description = %q{Provide a glimpse into the Subversion info of your Rails application.}
12
+ gem.summary = %q{Provide a glimpse into the Subversion info of your Rails application.}
13
+ gem.homepage = 'https://github.com/neilco/glimpse-svn'
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.require_paths = ['lib']
17
+
18
+ gem.add_dependency 'glimpse'
19
+ end
@@ -0,0 +1,11 @@
1
+ module Glimpse
2
+ module Views
3
+ class Svn < View
4
+ def rev_number
5
+ rev = `svnversion -n "#{Rails.root}"`.chomp.gsub(/[A-Z]/,'')
6
+ "Rev: <strong>#{rev}</strong>".html_safe
7
+ end
8
+ end
9
+ end
10
+ end
11
+
@@ -0,0 +1,6 @@
1
+ module Glimpse
2
+ module Svn
3
+ class Railtie < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Glimpse
2
+ module Svn
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ require "glimpse/views/svn"
2
+ require "glimpse-svn/version"
3
+ require "glimpse-svn/railtie"
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :glimpse-svn do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: glimpse-svn
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Neil Cowburn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: glimpse
16
+ requirement: !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: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: Provide a glimpse into the Subversion info of your Rails application.
31
+ email:
32
+ - neilco@gmail.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - .gitignore
38
+ - CHANGELOG.md
39
+ - Gemfile
40
+ - Gemfile.lock
41
+ - MIT-LICENSE
42
+ - README.md
43
+ - Rakefile
44
+ - app/views/glimpse/views/_svn.html.erb
45
+ - glimpse-svn.gemspec
46
+ - lib/glimpse-svn.rb
47
+ - lib/glimpse-svn/railtie.rb
48
+ - lib/glimpse-svn/version.rb
49
+ - lib/glimpse/views/svn.rb
50
+ - lib/tasks/glimpse-svn_tasks.rake
51
+ homepage: https://github.com/neilco/glimpse-svn
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: 1455258134782400045
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: 1455258134782400045
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.25
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Provide a glimpse into the Subversion info of your Rails application.
81
+ test_files: []