Skip to content

Commit

Permalink
Add frozen_string_literals pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 20, 2016
1 parent f430f0f commit 6b111a3
Show file tree
Hide file tree
Showing 54 changed files with 56 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ script: "bundle exec rspec spec"
sudo: false
cache: bundler
rvm:
- 2.0.0
- 2.1.0
- 2.1.1
- 2.2.1
- 2.1.8
- 2.2.4
- 2.3.0
- ruby-head
- jruby
- rbx-2
Expand Down
1 change: 1 addition & 0 deletions lib/active/triples.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# frozen_string_literal: true
require 'active_triples'
1 change: 1 addition & 0 deletions lib/active_triples.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'rdf'
require 'active_triples/version'
require 'active_support'
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/configurable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'deprecation'
require 'active_support/core_ext/array/wrap'

Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
require_relative 'configuration/item'
require_relative 'configuration/merge_item'
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/configuration/item.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
class Configuration
# Basic configuration item which overrides the value for a key on the object.
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/configuration/item_factory.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
class Configuration
## Returns a configuration item appropriate for a given configuration property.
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/configuration/merge_item.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support/core_ext/array/wrap'

module ActiveTriples
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/extension_strategy.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Default property applying strategy which just copies all configured properties
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/identifiable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support'
require 'active_support/core_ext/module/delegation'

Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/list.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# An implementation of RDF::List intregrated with ActiveTriples.
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/nested_attributes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support'
require 'active_support/concern'
require 'active_support/core_ext/class'
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/node_config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
class NodeConfig
attr_accessor :predicate, :term, :class_name, :type, :behaviors, :cast
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/persistable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Bundles the core interfaces used by ActiveTriples persistence strategies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Persistence strategy for projecting `RDFSource`s onto the graph of an owning
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# @abstract defines the basic interface for persistence of {RDFSource}'s.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Persistence strategy for projecting `RDFSource` to `RDF::Repositories`.
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/properties.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support/core_ext/hash'

module ActiveTriples
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/property.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# A value object to encapsulate what a Property is. Instantiate with a hash of
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/property_builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
class PropertyBuilder

Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/rdf_source.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_model'
require 'active_support/core_ext/hash'
require 'active_support/core_ext/array/wrap'
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/reflection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support/core_ext/class'

module ActiveTriples
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/relation.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'active_support/core_ext/module/delegation'

module ActiveTriples
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/repositories.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Defines module methods for registering an RDF::Repository for
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/resource.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'deprecation'

module ActiveTriples
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/schema.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# Super class which provides a simple property DSL for defining property ->
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/undefined_property_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
##
# An error class to be raised when attempting to reflect on an undefined
Expand Down
1 change: 1 addition & 0 deletions lib/active_triples/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module ActiveTriples
VERSION = "0.8.1".freeze
end
1 change: 1 addition & 0 deletions spec/active_triples/configurable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "spec_helper"

describe ActiveTriples::Configurable do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/configuration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe ActiveTriples::Configuration do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/extension_strategy_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe ActiveTriples::ExtensionStrategy do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/identifiable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'
require 'active_model'

Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/list_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'
require 'nokogiri'
require 'linkeddata'
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/nested_attributes_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe "nesting attribute behavior" do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/persistable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::Persistable do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::ParentStrategy do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::PersistenceStrategy do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::RepositoryStrategy do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/properties_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "spec_helper"
describe ActiveTriples::Properties do
before do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/property_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe ActiveTriples::Property do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/rdf_source_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'
require 'rdf/spec/enumerable'
require 'rdf/spec/queryable'
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/reflection_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::Reflection do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/relation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'
require 'rdf/isomorphic'

Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/repositories_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require "spec_helper"
describe ActiveTriples::Repositories do
subject { ActiveTriples::Repositories }
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/resource_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples::Resource do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples/schema_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe ActiveTriples::Schema do
Expand Down
1 change: 1 addition & 0 deletions spec/active_triples_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe ActiveTriples do
Expand Down
1 change: 1 addition & 0 deletions spec/integration/parent_persistence_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

describe "When using the ParentPersistenceStrategy" do
Expand Down
1 change: 1 addition & 0 deletions spec/pragmatic_context_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'
require 'pragmatic_context'

Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'coveralls'
Coveralls.wear!

Expand Down
1 change: 1 addition & 0 deletions spec/support/active_model_lint.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
shared_examples_for "an ActiveModel" do
subject { am_lint_class.new }

Expand Down
1 change: 1 addition & 0 deletions spec/support/dummies/basic_persistable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class BasicPersistable
include ActiveTriples::Persistable

Expand Down
1 change: 1 addition & 0 deletions spec/support/matchers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec::Matchers.define :be_a_relation_containing do |*expected|
Expand Down
1 change: 1 addition & 0 deletions spec/support/shared_examples/persistence_strategy.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
shared_examples 'a persistence strategy' do
shared_context 'with changes' do
before do
Expand Down

0 comments on commit 6b111a3

Please sign in to comment.