title 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c795ba3f15ebae717a82a25f1972ab853e73419
4
- data.tar.gz: 2f62923f88cd8dc69abb7859de3c006e8f605876
3
+ metadata.gz: 03f9667e1be4fe850bb8d230b5a564eca382c5e5
4
+ data.tar.gz: 6151b9dd9a956ef25ffd803f5d65613480c72148
5
5
  SHA512:
6
- metadata.gz: b6a8492f732db46220af427baeb074b136bde549699e860e17f3ec544195dcc260af77141638c63a79602a5082280def5c7c09d29b1d4f490de2d56506450211
7
- data.tar.gz: 39b3e5a49237c4e5f8d07c4fef6f734b010cb56d74aecbb9ed153e945f23fc66e5ed1c0c1d9960e95891b82ef7049eb7a7f5b2fd69f38649c03a1927c3a1583e
6
+ metadata.gz: 22c49852733852b6a395f569f65965db25d04607784eee8f2788c5eeab2a3a58f21eac4b016413165f6cebb03a2461a7b31b3c81d07ce173f0722456831b80c2
7
+ data.tar.gz: f23398d952d9941c116badc046e8a6003b71837637039b32de85abdabca4dc7dc62a90f963865b5772191a4e259d20b63b0147345a6d22006acd28a5f9b28010
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,39 @@
1
+ # Contributing
2
+
3
+ We love pull requests. Here's a quick guide:
4
+
5
+ 1. Fork the repo.
6
+ 2. Run the tests. We only take pull requests with passing tests, and it's great
7
+ to know that you have a clean slate: `bundle && rake`
8
+ 3. Add a test for your change. Only refactoring and documentation changes
9
+ require no new tests. If you are adding functionality or fixing a bug, we need
10
+ a test!
11
+ 4. Make the test pass.
12
+ 5. Make sure your changes adhere to the [thoughtbot Style
13
+ Guide](https://github.com/thoughtbot/guides/tree/master/style)
14
+ 6. Push to your fork and submit a pull request.
15
+ 7. At this point you're waiting on us. We like to at least comment on, if not
16
+ accept, pull requests within three business days (and, typically, one business
17
+ day). [We may suggest some changes or improvements or
18
+ alternatives](https://github.com/thoughtbot/guides/tree/master/code-review).
19
+
20
+ ## Increase your chances of getting merged
21
+
22
+ Some things that will increase the chance that your pull request is accepted,
23
+ taken straight from the Ruby on Rails guide:
24
+
25
+ * Use Rails idioms and helpers
26
+ * Include tests that fail without your code, and pass with it
27
+ * Update the documentation: that surrounding your change, examples elsewhere,
28
+ guides, and whatever else is affected by your contribution
29
+ * Syntax:
30
+ * Two spaces, no tabs.
31
+ * No trailing whitespace. Blank lines should not have any space.
32
+ * Make sure your [source files end with newline
33
+ characters](http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline#answer-729725).
34
+ * Prefer `&&`/`||` over `and`/`or`.
35
+ * `MyClass.my_method(my_arg)` not `my_method( my_arg )` or
36
+ `my_method my_arg`.
37
+ * `a = b` and not `a=b`.
38
+ * Follow the conventions you see used in the source already.
39
+ * And in case we didn't emphasize it enough: *We love tests!*
data/README.md CHANGED
@@ -30,3 +30,13 @@ def to_s
30
30
  name
31
31
  end
32
32
  ```
33
+
34
+ ## Acknowledgement
35
+
36
+ Though the idea of translating titles was arrived at seperately, [Brandon
37
+ Keepers] wrote [Abusing Rails I18N to Set Page Titles] which outlines an
38
+ extremely similar approach, and from whence came the idea of using the view
39
+ context to get local assigns to be used in interpolation.
40
+
41
+ [Brandon Keepers]: https://github.com/bkeepers
42
+ [Abusing Rails I18N to Set Page Titles]: http://opensoul.org/blog/archives/2012/11/05/abusing-rails-i18n-to-set-page-titles/
data/lib/title.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'title/version'
2
2
  require 'rails/engine'
3
3
  require 'title/engine'
4
- require 'title/helpers/title_helper'
4
+ require 'helpers/title/title_helper'
5
5
 
6
6
  module Title
7
7
  # Your code goes here...
data/lib/title/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Title
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'rubygems'
2
- require 'pry'
3
2
  require 'title'
4
3
 
5
4
  describe Title::TitleHelper do
data/title.gemspec CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'rspec'
24
24
 
25
25
  spec.add_dependency 'rails', '>= 3.1'
26
- spec.add_dependency 'I18n'
26
+ spec.add_dependency 'i18n'
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: title
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Thompson
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: I18n
70
+ name: i18n
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '>='
@@ -88,11 +88,12 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - .gitignore
91
+ - CONTRIBUTING.md
91
92
  - Gemfile
92
93
  - LICENSE.txt
93
94
  - README.md
94
95
  - Rakefile
95
- - app/title/helpers/title_helper.rb
96
+ - app/helpers/title/title_helper.rb
96
97
  - lib/title.rb
97
98
  - lib/title/engine.rb
98
99
  - lib/title/version.rb