prismic_rails 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env +1 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/prismic_rails/install_generator.rb +13 -0
- data/lib/generators/templates/prismic_rails.rb +10 -0
- data/lib/prismic_rails.rb +71 -0
- data/lib/prismic_rails/content/document.rb +25 -0
- data/lib/prismic_rails/content/fragment.rb +17 -0
- data/lib/prismic_rails/content/nil_document.rb +25 -0
- data/lib/prismic_rails/content/result.rb +19 -0
- data/lib/prismic_rails/helpers/view_helpers.rb +24 -0
- data/lib/prismic_rails/railtie.rb +23 -0
- data/lib/prismic_rails/services/language_service.rb +29 -0
- data/lib/prismic_rails/services/parser_service.rb +11 -0
- data/lib/prismic_rails/services/query_service.rb +36 -0
- data/lib/prismic_rails/version.rb +3 -0
- data/prismic_rails.gemspec +50 -0
- metadata +264 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3482d45c501bd3ef2d8830d06d42d799540f5012
|
4
|
+
data.tar.gz: d38460d6a6b02c5ed6c3bcecd02559a69c94b245
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: af0acf406aa6c0a5aa3508aad6f9c8abd45fdd3dcc39c98699fec4c8a9513df6ae383815a278eedf19a5d4c482de32654411489fbfd5a7462c16435600f8eb33
|
7
|
+
data.tar.gz: 4aac4a2aaf343f19e9b64e1b949a422bbc68c0b311a3a9136f30eaa3445a47de63dbda5c0bad931023dbd205d93712c5c3ff0ac6c5a74b0941cc99cf5b1082bd
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Felix Langenegger
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# PrismicRails
|
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/prismic-rails`. 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 'prismic-rails'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install prismic-rails
|
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/fadendaten/prismic-rails.
|
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
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "prismicRails"
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
module PrismicRails
|
3
|
+
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../../templates", __FILE__)
|
6
|
+
|
7
|
+
desc "Creates a PrismicRails initializer and copy locale files to your application."
|
8
|
+
def create_initializer_file
|
9
|
+
template "prismic_rails.rb", "config/initializers/prismic_rails.rb"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'prismic'
|
2
|
+
require 'rails'
|
3
|
+
require "prismic_rails/version"
|
4
|
+
require 'prismic_rails/railtie'
|
5
|
+
require "prismic_rails/helpers/view_helpers.rb"
|
6
|
+
require "prismic_rails/services/query_service.rb"
|
7
|
+
require "prismic_rails/services/parser_service.rb"
|
8
|
+
require "prismic_rails/services/language_service.rb"
|
9
|
+
require "prismic_rails/content/result.rb"
|
10
|
+
require "prismic_rails/content/document.rb"
|
11
|
+
require "prismic_rails/content/fragment.rb"
|
12
|
+
require "prismic_rails/content/nil_document.rb"
|
13
|
+
|
14
|
+
module PrismicRails
|
15
|
+
|
16
|
+
class Config
|
17
|
+
attr_accessor :url,
|
18
|
+
:token,
|
19
|
+
:client_id,
|
20
|
+
:client_secret,
|
21
|
+
:languages,
|
22
|
+
:caching
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.config
|
26
|
+
@@config ||= Config.new
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.configure
|
30
|
+
yield self.config
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.api
|
34
|
+
begin
|
35
|
+
@api = Prismic.api(self.config.url, self.config.token)
|
36
|
+
rescue Prismic::API::PrismicWSConnectionError,
|
37
|
+
Prismic::API::BadPrismicResponseError,
|
38
|
+
Prismic::API::PrismicWSAuthError,
|
39
|
+
SocketError,
|
40
|
+
Net::OpenTimeout => e
|
41
|
+
@api = nil
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.ref
|
46
|
+
if caching_enabled?
|
47
|
+
get_cached_ref
|
48
|
+
else
|
49
|
+
get_ref
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.get_cached_ref
|
54
|
+
if @api.nil?
|
55
|
+
@ref = Rails.cache.fetch('prismic_rails_ref')
|
56
|
+
else
|
57
|
+
master_ref = get_ref
|
58
|
+
Rails.cache.write('prismic_rails_ref', master_ref)
|
59
|
+
@ref = master_ref
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.get_ref
|
64
|
+
@api.master_ref.ref
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.caching_enabled?
|
68
|
+
PrismicRails.config.caching
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module PrismicRails
|
2
|
+
class Document
|
3
|
+
|
4
|
+
def initialize(document)
|
5
|
+
@document = document || PrismicRails::NilDocument.new
|
6
|
+
end
|
7
|
+
|
8
|
+
def to_html
|
9
|
+
@document.as_html(nil).html_safe
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_text
|
13
|
+
@document.as_text
|
14
|
+
end
|
15
|
+
|
16
|
+
def find_fragment(type)
|
17
|
+
fragment = @document.fragments[type]
|
18
|
+
return PrismicRails::Fragment.new(fragment) || NilDocument.new
|
19
|
+
end
|
20
|
+
|
21
|
+
def is_type? type
|
22
|
+
type == @document.type
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module PrismicRails
|
2
|
+
class NilDocument
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
@document = ''
|
6
|
+
end
|
7
|
+
|
8
|
+
def to_html
|
9
|
+
@document
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_text
|
13
|
+
@document
|
14
|
+
end
|
15
|
+
|
16
|
+
def type
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
def is_type? type
|
21
|
+
false
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module PrismicRails
|
2
|
+
class Result
|
3
|
+
|
4
|
+
attr_accessor :documents
|
5
|
+
|
6
|
+
def initialize(prismic_documents)
|
7
|
+
@documents = prismic_documents.map do |document|
|
8
|
+
PrismicRails::Document.new(document)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def find_fragment(type)
|
13
|
+
@documents.each do |document|
|
14
|
+
return document.find_fragment(type)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'prismic'
|
2
|
+
|
3
|
+
module PrismicRails
|
4
|
+
module ViewHelpers
|
5
|
+
|
6
|
+
def welcome text
|
7
|
+
content_tag :p, text
|
8
|
+
end
|
9
|
+
|
10
|
+
def prismic_url
|
11
|
+
url = PrismicRails.config.url
|
12
|
+
content_tag :p, url
|
13
|
+
end
|
14
|
+
|
15
|
+
def prismic_tag(type, options = {}, &block)
|
16
|
+
Rails.cache.fetch [PrismicRails.ref, options] do
|
17
|
+
response = PrismicRails::QueryService.type(type, options)
|
18
|
+
result = PrismicRails::ParserService.new(response).result
|
19
|
+
capture(result, &block)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'prismic_rails/helpers/view_helpers'
|
2
|
+
|
3
|
+
module PrismicRails
|
4
|
+
class Railtie < Rails::Railtie
|
5
|
+
config.prismic_rails = ActiveSupport::OrderedOptions.new # enable namespaced configuration in Rails environments
|
6
|
+
|
7
|
+
initializer "prismic_rails.view_helpers" do
|
8
|
+
ActionView::Base.send :include, ViewHelpers
|
9
|
+
end
|
10
|
+
|
11
|
+
initializer 'prismic_rails.configure' do |app|
|
12
|
+
PrismicRails.configure do |config|
|
13
|
+
config.url = app.config.prismic_rails[:url]
|
14
|
+
config.token = app.config.prismic_rails[:token]
|
15
|
+
config.client_id = app.config.prismic_rails[:client_id]
|
16
|
+
config.client_secret = app.config.prismic_rails[:client_secret]
|
17
|
+
config.languages = app.config.prismic_rails[:languages]
|
18
|
+
config.caching = app.config.prismic_rails[:caching]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module PrismicRails
|
2
|
+
class LanguageService
|
3
|
+
|
4
|
+
attr_accessor :locale
|
5
|
+
|
6
|
+
def self.call(locale)
|
7
|
+
new(locale).match()
|
8
|
+
end
|
9
|
+
|
10
|
+
def initialize(locale)
|
11
|
+
@locale = locale
|
12
|
+
end
|
13
|
+
|
14
|
+
def match
|
15
|
+
return language_hash[@locale.to_sym]
|
16
|
+
end
|
17
|
+
|
18
|
+
def yaml_file
|
19
|
+
file = File.read(File.expand_path(FILE_PATH, __FILE__))
|
20
|
+
YAML.load(file)
|
21
|
+
end
|
22
|
+
|
23
|
+
def language_hash
|
24
|
+
HashWithIndifferentAccess.new(PrismicRails.config.languages)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module PrismicRails
|
2
|
+
module QueryService
|
3
|
+
class << self
|
4
|
+
|
5
|
+
DOCUMENT_TYPE = 'document.type'.freeze
|
6
|
+
|
7
|
+
def type(type, options = {})
|
8
|
+
match_language options if options[:lang]
|
9
|
+
query(predicates(type), options)
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def query(predicates, options)
|
15
|
+
api.query(predicates,
|
16
|
+
options)
|
17
|
+
end
|
18
|
+
|
19
|
+
def predicates type
|
20
|
+
Prismic::Predicates.at(DOCUMENT_TYPE, type)
|
21
|
+
end
|
22
|
+
|
23
|
+
def language
|
24
|
+
end
|
25
|
+
|
26
|
+
def api
|
27
|
+
PrismicRails.api
|
28
|
+
end
|
29
|
+
|
30
|
+
def match_language options
|
31
|
+
options[:lang] = PrismicRails::LanguageService.call(options[:lang])
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'prismic_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "prismic_rails"
|
8
|
+
spec.version = PrismicRails::VERSION
|
9
|
+
spec.authors = ["Felix Langenegger"]
|
10
|
+
spec.email = ["f.langenegger@fadendaten.ch"]
|
11
|
+
|
12
|
+
spec.summary = %q{Write a short summary, because Rubygems requires one.}
|
13
|
+
spec.description = %q{Write a longer description or delete this line.}
|
14
|
+
spec.homepage = "https://github.com/fadendaten/prismic-rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
# TODO
|
20
|
+
# if spec.respond_to?(:metadata)
|
21
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
22
|
+
# else
|
23
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
24
|
+
# "public gem pushes."
|
25
|
+
# end
|
26
|
+
|
27
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
f.match(%r{^(test|spec|features)/})
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_runtime_dependency "prismic.io", "~> 1.4.1"
|
35
|
+
spec.add_runtime_dependency 'rails'
|
36
|
+
|
37
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
38
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
40
|
+
|
41
|
+
spec.add_development_dependency "vcr"
|
42
|
+
spec.add_development_dependency "dotenv"
|
43
|
+
spec.add_development_dependency "faraday"
|
44
|
+
spec.add_development_dependency "faraday_middleware"
|
45
|
+
spec.add_development_dependency "webmock"
|
46
|
+
spec.add_development_dependency "pry"
|
47
|
+
spec.add_development_dependency "pry-byebug"
|
48
|
+
spec.add_development_dependency "pry-doc"
|
49
|
+
spec.add_development_dependency 'simplecov'
|
50
|
+
end
|
metadata
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: prismic_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.21
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Felix Langenegger
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: prismic.io
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.4.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.4.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: dotenv
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faraday
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: faraday_middleware
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: webmock
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: pry
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: pry-byebug
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pry-doc
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: simplecov
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
description: Write a longer description or delete this line.
|
210
|
+
email:
|
211
|
+
- f.langenegger@fadendaten.ch
|
212
|
+
executables: []
|
213
|
+
extensions: []
|
214
|
+
extra_rdoc_files: []
|
215
|
+
files:
|
216
|
+
- ".env"
|
217
|
+
- ".gitignore"
|
218
|
+
- ".rspec"
|
219
|
+
- ".travis.yml"
|
220
|
+
- Gemfile
|
221
|
+
- LICENSE.txt
|
222
|
+
- README.md
|
223
|
+
- Rakefile
|
224
|
+
- bin/console
|
225
|
+
- bin/setup
|
226
|
+
- lib/generators/prismic_rails/install_generator.rb
|
227
|
+
- lib/generators/templates/prismic_rails.rb
|
228
|
+
- lib/prismic_rails.rb
|
229
|
+
- lib/prismic_rails/content/document.rb
|
230
|
+
- lib/prismic_rails/content/fragment.rb
|
231
|
+
- lib/prismic_rails/content/nil_document.rb
|
232
|
+
- lib/prismic_rails/content/result.rb
|
233
|
+
- lib/prismic_rails/helpers/view_helpers.rb
|
234
|
+
- lib/prismic_rails/railtie.rb
|
235
|
+
- lib/prismic_rails/services/language_service.rb
|
236
|
+
- lib/prismic_rails/services/parser_service.rb
|
237
|
+
- lib/prismic_rails/services/query_service.rb
|
238
|
+
- lib/prismic_rails/version.rb
|
239
|
+
- prismic_rails.gemspec
|
240
|
+
homepage: https://github.com/fadendaten/prismic-rails
|
241
|
+
licenses:
|
242
|
+
- MIT
|
243
|
+
metadata: {}
|
244
|
+
post_install_message:
|
245
|
+
rdoc_options: []
|
246
|
+
require_paths:
|
247
|
+
- lib
|
248
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '0'
|
253
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
requirements: []
|
259
|
+
rubyforge_project:
|
260
|
+
rubygems_version: 2.6.8
|
261
|
+
signing_key:
|
262
|
+
specification_version: 4
|
263
|
+
summary: Write a short summary, because Rubygems requires one.
|
264
|
+
test_files: []
|