-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.txt
45 lines (34 loc) · 1.99 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- https://www.sitepoint.com/creating-your-first-gem/
Now in your main program you can just require your module and give it any file to parse. In Rails, we would probably put a module like this in the lib folder. You can create large module 'libraries' consisting of many nested modules and classes. Here is a more complex example module used for processing data.May 5, 2016
bundle gem carrierwave_asserts
add code
gem build carrierwave_asserts.gemspec
gem install carrierwave_asserts-0.1.0.gem
add this to a local rails Gemfile
gem 'carrierwave_asserts' -->
# Common issues
http://siawyoung.com/coding/ruby/invalid-gemspec.html
https://stackoverflow.com/questions/6256743/while-executing-gem-extconf-rb-are-not-files
I got this error because I hadn't commited my updates with git yet.
s.files = `git ls-files`.split("\n")
That line is directly using git, and probably causing this error. Just do
git add .
git commit -a -m "init"
# https://www.sitepoint.com/creating-your-first-gem/
#
# Now in your main program you can just require your module and give it any file to parse. In Rails, we would probably put a module like this in the lib folder. You can create large module 'libraries' consisting of many nested modules and classes. Here is a more complex example module used for processing data.May 5, 2016
#
# bundle gem carrierwave_asserts
# add code
# gem build carrierwave_asserts.gemspec
# gem install carrierwave_asserts.gemspec
# add this to a local rails Gemfile
# gem 'carrierwave_asserts'
# BROKEN
# https://github.com/seattlerb/minitest/issues/730
# https://chriskottom.com/blog/2014/08/customize-minitest-assertions-and-expectations/
#https://lingohub.com/blog/2013/08/internationalization-for-ruby-i18n-gem/
#YAML.load_file('/home/deploy/Desktop/git/carrierwave_asserts/config/locales/en.yml')
#https://lingohub.com/blog/2013/08/internationalization-for-ruby-i18n-gem/
# I18n.load_path = Dir['./*.yml', './*.rb']
#I18n.load_path = Dir['/home/deploy/Desktop/git/carrierwave_asserts/config/locales/en.yml']