lorin_production_ready 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38066905f6a02dd91f3e0c6c7a00cd75daa36fa1
4
+ data.tar.gz: 3a6f3ad06d01cdf2c158b2e59ef173b77b1b8fff
5
+ SHA512:
6
+ metadata.gz: eabb4c131ab3ab4fec72c633a6e0663779f376f08de606c9c3360c40787e41386a99042aeba8fb05c4588573a13ea17b37557d162234c7165d72db100acf122d
7
+ data.tar.gz: ede4dc2062c932ba91c7bea1c42df3ae0ca509803f431e1eab429ca11ec79946c5011fad68b47cd57ea85c9bf3b8a54ca3fc4e5f22fdb947f9106dc179eb0e3d
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.8
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at lthwaits@hotmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in lorin_production_ready.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 TODO: Write your name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ # Lorin's ProductionReady gem
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lorin_production_ready`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'lorin_production_ready'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install lorin_production_ready
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lorin_production_ready. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "lorin_production_ready"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+ class PoemGenerator < Rails::Generators::Base
3
+ desc "Read poetry, dude!"
4
+
5
+ def self.source_root
6
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
7
+ end
8
+
9
+ def poem
10
+ template "poetry/raven.txt"
11
+ template "app/assets/javascripts/whatever.js"
12
+ end
13
+ def poem2
14
+ template "poetry/raven.txt"
15
+ template "app/assets/javascripts/whatever.js"
16
+ end
17
+ end
@@ -0,0 +1 @@
1
+ console.log("You've run the whatever thinger!");
@@ -0,0 +1,125 @@
1
+ Once upon a midnight dreary, while I pondered, weak and weary,
2
+ Over many a quaint and curious volume of forgotten lore—
3
+ While I nodded, nearly napping, suddenly there came a tapping,
4
+ As of some one gently rapping, rapping at my chamber door.
5
+ “’Tis some visitor,” I muttered, “tapping at my chamber door—
6
+ Only this and nothing more.”
7
+
8
+ Ah, distinctly I remember it was in the bleak December;
9
+ And each separate dying ember wrought its ghost upon the floor.
10
+ Eagerly I wished the morrow;—vainly I had sought to borrow
11
+ From my books surcease of sorrow—sorrow for the lost Lenore—
12
+ For the rare and radiant maiden whom the angels name Lenore—
13
+ Nameless here for evermore.
14
+
15
+ And the silken, sad, uncertain rustling of each purple curtain
16
+ Thrilled me—filled me with fantastic terrors never felt before;
17
+ So that now, to still the beating of my heart, I stood repeating
18
+ “’Tis some visitor entreating entrance at my chamber door—
19
+ Some late visitor entreating entrance at my chamber door;—
20
+ This it is and nothing more.”
21
+
22
+ Presently my soul grew stronger; hesitating then no longer,
23
+ “Sir,” said I, “or Madam, truly your forgiveness I implore;
24
+ But the fact is I was napping, and so gently you came rapping,
25
+ And so faintly you came tapping, tapping at my chamber door,
26
+ That I scarce was sure I heard you”—here I opened wide the door;—
27
+ Darkness there and nothing more.
28
+
29
+ Deep into that darkness peering, long I stood there wondering, fearing,
30
+ Doubting, dreaming dreams no mortal ever dared to dream before;
31
+ But the silence was unbroken, and the stillness gave no token,
32
+ And the only word there spoken was the whispered word, “Lenore?”
33
+ This I whispered, and an echo murmured back the word, “Lenore!”—
34
+ Merely this and nothing more.
35
+
36
+ Back into the chamber turning, all my soul within me burning,
37
+ Soon again I heard a tapping somewhat louder than before.
38
+ “Surely,” said I, “surely that is something at my window lattice;
39
+ Let me see, then, what thereat is, and this mystery explore—
40
+ Let my heart be still a moment and this mystery explore;—
41
+ ’Tis the wind and nothing more!”
42
+
43
+ Open here I flung the shutter, when, with many a flirt and flutter,
44
+ In there stepped a stately Raven of the saintly days of yore;
45
+ Not the least obeisance made he; not a minute stopped or stayed he;
46
+ But, with mien of lord or lady, perched above my chamber door—
47
+ Perched upon a bust of Pallas just above my chamber door—
48
+ Perched, and sat, and nothing more.
49
+
50
+ Then this ebony bird beguiling my sad fancy into smiling,
51
+ By the grave and stern decorum of the countenance it wore,
52
+ “Though thy crest be shorn and shaven, thou,” I said, “art sure no craven,
53
+ Ghastly grim and ancient Raven wandering from the Nightly shore—
54
+ Tell me what thy lordly name is on the Night’s Plutonian shore!”
55
+ Quoth the Raven “Nevermore.”
56
+
57
+ Much I marvelled this ungainly fowl to hear discourse so plainly,
58
+ Though its answer little meaning—little relevancy bore;
59
+ For we cannot help agreeing that no living human being
60
+ Ever yet was blessed with seeing bird above his chamber door—
61
+ Bird or beast upon the sculptured bust above his chamber door,
62
+ With such name as “Nevermore.”
63
+
64
+ But the Raven, sitting lonely on the placid bust, spoke only
65
+ That one word, as if his soul in that one word he did outpour.
66
+ Nothing farther then he uttered—not a feather then he fluttered—
67
+ Till I scarcely more than muttered “Other friends have flown before—
68
+ On the morrow he will leave me, as my Hopes have flown before.”
69
+ Then the bird said “Nevermore.”
70
+
71
+ Startled at the stillness broken by reply so aptly spoken,
72
+ “Doubtless,” said I, “what it utters is its only stock and store
73
+ Caught from some unhappy master whom unmerciful Disaster
74
+ Followed fast and followed faster till his songs one burden bore—
75
+ Till the dirges of his Hope that melancholy burden bore
76
+ Of ‘Never—nevermore’.”
77
+
78
+ But the Raven still beguiling all my fancy into smiling,
79
+ Straight I wheeled a cushioned seat in front of bird, and bust and door;
80
+ Then, upon the velvet sinking, I betook myself to linking
81
+ Fancy unto fancy, thinking what this ominous bird of yore—
82
+ What this grim, ungainly, ghastly, gaunt, and ominous bird of yore
83
+ Meant in croaking “Nevermore.”
84
+
85
+ This I sat engaged in guessing, but no syllable expressing
86
+ To the fowl whose fiery eyes now burned into my bosom’s core;
87
+ This and more I sat divining, with my head at ease reclining
88
+ On the cushion’s velvet lining that the lamp-light gloated o’er,
89
+ But whose velvet-violet lining with the lamp-light gloating o’er,
90
+ She shall press, ah, nevermore!
91
+
92
+ Then, methought, the air grew denser, perfumed from an unseen censer
93
+ Swung by Seraphim whose foot-falls tinkled on the tufted floor.
94
+ “Wretch,” I cried, “thy God hath lent thee—by these angels he hath sent thee
95
+ Respite—respite and nepenthe from thy memories of Lenore;
96
+ Quaff, oh quaff this kind nepenthe and forget this lost Lenore!”
97
+ Quoth the Raven “Nevermore.”
98
+
99
+ “Prophet!” said I, “thing of evil!—prophet still, if bird or devil!—
100
+ Whether Tempter sent, or whether tempest tossed thee here ashore,
101
+ Desolate yet all undaunted, on this desert land enchanted—
102
+ On this home by Horror haunted—tell me truly, I implore—
103
+ Is there—is there balm in Gilead?—tell me—tell me, I implore!”
104
+ Quoth the Raven “Nevermore.”
105
+
106
+ “Prophet!” said I, “thing of evil!—prophet still, if bird or devil!
107
+ By that Heaven that bends above us—by that God we both adore—
108
+ Tell this soul with sorrow laden if, within the distant Aidenn,
109
+ It shall clasp a sainted maiden whom the angels name Lenore—
110
+ Clasp a rare and radiant maiden whom the angels name Lenore.”
111
+ Quoth the Raven “Nevermore.”
112
+
113
+ “Be that word our sign of parting, bird or fiend!” I shrieked, upstarting—
114
+ “Get thee back into the tempest and the Night’s Plutonian shore!
115
+ Leave no black plume as a token of that lie thy soul hath spoken!
116
+ Leave my loneliness unbroken!—quit the bust above my door!
117
+ Take thy beak from out my heart, and take thy form from off my door!”
118
+ Quoth the Raven “Nevermore.”
119
+
120
+ And the Raven, never flitting, still is sitting, still is sitting
121
+ On the pallid bust of Pallas just above my chamber door;
122
+ And his eyes have all the seeming of a demon’s that is dreaming,
123
+ And the lamp-light o’er him streaming throws his shadow on the floor;
124
+ And my soul from out that shadow that lies floating on the floor
125
+ Shall be lifted—nevermore!
@@ -0,0 +1,9 @@
1
+ require "lorin_production_ready/version"
2
+
3
+ module LorinProductionReady
4
+ # Your code goes here...
5
+ def hello
6
+ "asdf"
7
+ end
8
+ end
9
+
@@ -0,0 +1,3 @@
1
+ module LorinProductionReady
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'lorin_production_ready/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "lorin_production_ready"
8
+ spec.version = LorinProductionReady::VERSION
9
+ spec.authors = ["Lorin Thwaits"]
10
+ spec.email = ["lthwaits@hotmail.com"]
11
+
12
+ spec.summary = %q{Automatically manage assets when pushing to production}
13
+ spec.description = %q{Removes all precompiled assets for production with rake assets:clobber before
14
+ doing a rake assets:precompile, and then pushes the content to heroku, as long as
15
+ a heroku app has been configured.}
16
+ spec.homepage = "https://github.com/lorint/production_ready"
17
+ spec.license = "MIT"
18
+
19
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
20
+ # delete this section to allow pushing this gem to any host.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
25
+ end
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "rails_12factor"
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.11"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lorin_production_ready
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Lorin Thwaits
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails_12factor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: |-
70
+ Removes all precompiled assets for production with rake assets:clobber before
71
+ doing a rake assets:precompile, and then pushes the content to heroku, as long as
72
+ a heroku app has been configured.
73
+ email:
74
+ - lthwaits@hotmail.com
75
+ executables: []
76
+ extensions: []
77
+ extra_rdoc_files: []
78
+ files:
79
+ - ".gitignore"
80
+ - ".rspec"
81
+ - ".travis.yml"
82
+ - CODE_OF_CONDUCT.md
83
+ - Gemfile
84
+ - LICENSE.txt
85
+ - README.md
86
+ - Rakefile
87
+ - bin/console
88
+ - bin/setup
89
+ - lib/generators/lorin_production_ready/poem_generator.rb
90
+ - lib/generators/lorin_production_ready/templates/app/assets/javascripts/whatever.js
91
+ - lib/generators/lorin_production_ready/templates/poetry/raven.txt
92
+ - lib/lorin_production_ready.rb
93
+ - lib/lorin_production_ready/version.rb
94
+ - lorin_production_ready.gemspec
95
+ homepage: https://github.com/lorint/production_ready
96
+ licenses:
97
+ - MIT
98
+ metadata:
99
+ allowed_push_host: https://rubygems.org
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.4.8
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Automatically manage assets when pushing to production
120
+ test_files: []