Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c96d7d190120
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2c17d375c0f1
Choose a head ref
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 23, 2014

  1. Processor#encode

    adambeynon committed Nov 23, 2014
    Copy the full SHA
    cdf8c5b View commit details
  2. Also encode mtime

    adambeynon committed Nov 23, 2014

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e81ec84 View commit details
  3. Copy the full SHA
    2c17d37 View commit details
Showing with 16 additions and 1 deletion.
  1. +1 −1 lib/opal/builder/cached_asset.rb
  2. +15 −0 lib/opal/builder_processors.rb
2 changes: 1 addition & 1 deletion lib/opal/builder/cached_asset.rb
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ def to_s
end

def source_map
""
@data['source_map']
end

# Check that this cached asset is fresh. A fresh asset is one
15 changes: 15 additions & 0 deletions lib/opal/builder_processors.rb
Original file line number Diff line number Diff line change
@@ -18,6 +18,21 @@ def initialize(source, filename, options = {})
end
attr_reader :source, :filename, :options, :requires, :required_trees

def encode
{
'source' => source,
'requires' => requires,
'required_trees' => required_trees,
'mtime' => mtime,
'source_map' => source_map.as_json
}
end

# TODO: should be real path mtime
def mtime
0
end

def to_s
source.to_s
end