hologram_rails 0.0.3

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.
@@ -0,0 +1,23 @@
1
+ # Hologram will run from same directory where this config file resides
2
+ # All paths should be relative to there
3
+
4
+ # The directory containing the source files to parse recursively
5
+ source: ./app/assets
6
+
7
+ # The directory that hologram will build to
8
+ destination: ./public/styleguide
9
+
10
+ # The assets needed to build the docs (includes header.html,
11
+ # footer.html, etc)
12
+ # You may put doc related assets here too: images, css, etc.
13
+ documentation_assets: ./doc_assets
14
+
15
+ # Any other asset folders that need to be copied to the destination
16
+ # folder. Typically this will include the css that you are trying to
17
+ # document. May also include additional folders as needed.
18
+ dependencies:
19
+
20
+ # Mark which category should be the index page
21
+ # Alternatively, you may have an index.md in the documentation assets
22
+ # folder instead of specifying this configuration.
23
+ index: basics
@@ -0,0 +1,5 @@
1
+ require "hologram_rails/version"
2
+ require "generators/hologram_rails/install/install_generator"
3
+ module HologramRails
4
+
5
+ end
@@ -0,0 +1,3 @@
1
+ module HologramRails
2
+ VERSION ||= "0.0.3"
3
+ end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+
3
+ describe "getting Hologram and Guard-Hologram" do
4
+ TMP = File.join(File.dirname(__FILE__), '..', '..', 'tmp')
5
+ PWD = Dir.pwd
6
+
7
+ before :all do
8
+ FileUtils::cd TMP
9
+
10
+ FileUtils::rm_rf File.join(TMP, 'test_app')
11
+ `rails new test_app`
12
+
13
+ FileUtils::cd File.join(TMP, 'test_app')
14
+ File.open('Gemfile', 'a') do |file|
15
+ file << <<-RUBY
16
+
17
+ gem 'hologram_rails', path: '../../'
18
+ gem 'hologram', github: "trulia/hologram"
19
+ RUBY
20
+ end
21
+
22
+ `bundle`
23
+ `bundle exec rails g hologram_rails:install`
24
+ end
25
+
26
+ it "should add Hologram and Guard-Hologram to the Gemfile" do
27
+ expect(`bundle exec gem list`).to include('hologram', 'guard-hologram')
28
+ end
29
+
30
+ it "should run hologram init" do
31
+ expect(File.exists?('hologram_config.yml')).to be_true
32
+ end
33
+
34
+ it "should run guard init" do
35
+ expect(File.exists?('Guardfile')).to be_true
36
+ expect(File.read('Guardfile')).to include("guard 'hologram'")
37
+ end
38
+
39
+ it 'should generate a styleguide' do
40
+ expect(`bundle exec hologram`).to include('Build completed.')
41
+ end
42
+
43
+ after :all do
44
+ FileUtils::rm_rf File.join(TMP, 'test_app')
45
+ FileUtils::cd PWD
46
+ end
47
+ end
File without changes
@@ -0,0 +1,10 @@
1
+ require 'hologram_rails'
2
+ require 'rspec'
3
+
4
+ RSpec.configure do |config|
5
+ config.color_enabled = true
6
+ config.filter_run :focus => true
7
+ config.run_all_when_everything_filtered = true
8
+ end
9
+
10
+ #def create_tmp_dir
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hologram_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jenny Chou
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-02-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.5'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.5'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: guard-hologram
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: Write a longer description. Optional.
95
+ email:
96
+ - pair+jchou@pivotallabs.com
97
+ executables: []
98
+ extensions: []
99
+ extra_rdoc_files: []
100
+ files:
101
+ - .gitignore
102
+ - .ruby-version
103
+ - .rvmrc
104
+ - Gemfile
105
+ - LICENSE
106
+ - LICENSE.txt
107
+ - README.md
108
+ - Rakefile
109
+ - hologram_rails.gemspec
110
+ - lib/generators/hologram_rails/install/install_generator.rb
111
+ - lib/generators/hologram_rails/install/templates/_footer.html
112
+ - lib/generators/hologram_rails/install/templates/_header.html
113
+ - lib/generators/hologram_rails/install/templates/hologram_config.yml
114
+ - lib/hologram_rails.rb
115
+ - lib/hologram_rails/version.rb
116
+ - spec/integration/dependencies_spec.rb
117
+ - spec/lib/hologram_rails_spec.rb
118
+ - spec/spec_helper.rb
119
+ homepage: ''
120
+ licenses:
121
+ - MIT
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 1.8.23
141
+ signing_key:
142
+ specification_version: 3
143
+ summary: Hologram with Rails.
144
+ test_files:
145
+ - spec/integration/dependencies_spec.rb
146
+ - spec/lib/hologram_rails_spec.rb
147
+ - spec/spec_helper.rb