contentful_bootstrap 0.0.7 → 1.1.0

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile +1 -0
  4. data/README.md +28 -19
  5. data/bin/contentful_bootstrap +10 -11
  6. data/contentful_bootstrap.gemspec +3 -2
  7. data/lib/contentful/bootstrap.rb +5 -0
  8. data/lib/contentful/bootstrap/commands.rb +135 -0
  9. data/lib/contentful/bootstrap/constants.rb +8 -0
  10. data/lib/contentful/bootstrap/server.rb +97 -0
  11. data/lib/contentful/bootstrap/support.rb +14 -0
  12. data/lib/contentful/bootstrap/templates.rb +3 -0
  13. data/lib/contentful/bootstrap/templates/base.rb +118 -0
  14. data/lib/contentful/bootstrap/templates/blog.rb +77 -0
  15. data/lib/contentful/bootstrap/templates/catalogue.rb +189 -0
  16. data/lib/contentful/bootstrap/templates/gallery.rb +119 -0
  17. data/lib/contentful/bootstrap/templates/links.rb +2 -0
  18. data/lib/contentful/bootstrap/templates/links/asset.rb +15 -0
  19. data/lib/contentful/bootstrap/templates/links/base.rb +18 -0
  20. data/lib/contentful/bootstrap/templates/links/entry.rb +15 -0
  21. data/lib/contentful/bootstrap/token.rb +58 -0
  22. data/lib/contentful/bootstrap/version.rb +5 -0
  23. metadata +32 -18
  24. data/lib/contentful_bootstrap.rb +0 -5
  25. data/lib/contentful_bootstrap/commands.rb +0 -120
  26. data/lib/contentful_bootstrap/constants.rb +0 -6
  27. data/lib/contentful_bootstrap/server.rb +0 -95
  28. data/lib/contentful_bootstrap/support.rb +0 -12
  29. data/lib/contentful_bootstrap/templates.rb +0 -3
  30. data/lib/contentful_bootstrap/templates/base.rb +0 -116
  31. data/lib/contentful_bootstrap/templates/blog.rb +0 -75
  32. data/lib/contentful_bootstrap/templates/catalogue.rb +0 -187
  33. data/lib/contentful_bootstrap/templates/gallery.rb +0 -117
  34. data/lib/contentful_bootstrap/templates/links.rb +0 -2
  35. data/lib/contentful_bootstrap/templates/links/asset.rb +0 -13
  36. data/lib/contentful_bootstrap/templates/links/base.rb +0 -16
  37. data/lib/contentful_bootstrap/templates/links/entry.rb +0 -13
  38. data/lib/contentful_bootstrap/token.rb +0 -23
  39. data/lib/contentful_bootstrap/version.rb +0 -3
@@ -1,2 +0,0 @@
1
- require "contentful_bootstrap/templates/links/entry"
2
- require "contentful_bootstrap/templates/links/asset"
@@ -1,13 +0,0 @@
1
- require "contentful_bootstrap/templates/links/base"
2
-
3
- module ContentfulBootstrap
4
- module Templates
5
- module Links
6
- class Asset < Base
7
- def kind
8
- :assets
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,16 +0,0 @@
1
- module ContentfulBootstrap
2
- module Templates
3
- module Links
4
- class Base
5
- attr_reader :id
6
- def initialize(id)
7
- @id = id
8
- end
9
-
10
- def kind
11
- raise "must implement"
12
- end
13
- end
14
- end
15
- end
16
- end
@@ -1,13 +0,0 @@
1
- require "contentful_bootstrap/templates/links/base"
2
-
3
- module ContentfulBootstrap
4
- module Templates
5
- module Links
6
- class Entry < Base
7
- def kind
8
- :entries
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -1,23 +0,0 @@
1
- module ContentfulBootstrap
2
- class Token
3
- def self.present?
4
- File.exist?(filename)
5
- end
6
-
7
- def self.read
8
- File.open(filename, "r") { |f|
9
- f.readlines[0]
10
- }
11
- end
12
-
13
- def self.write(token)
14
- File.open(filename, "w") { |f|
15
- f.write(token)
16
- }
17
- end
18
-
19
- def self.filename
20
- File.join(Dir.pwd, ".contentful_token")
21
- end
22
- end
23
- end
@@ -1,3 +0,0 @@
1
- module ContentfulBootstrap
2
- VERSION = "0.0.7"
3
- end